Skip to content
Snippets Groups Projects
Commit c19120e0 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

Check import

parent 1e0e48fc
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,13 @@ _LOGGER = logging.getLogger(__name__)
def setup_platform(hass, config, add_devices, discovery_info=None):
""" Sets up the Radio Thermostat. """
import radiotherm
try:
import radiotherm
except ImportError:
_LOGGER.exception(
"Unable to import radiotherm. "
"Did you maybe not install the 'radiotherm' package?")
return False
hosts = []
if CONF_HOST in config:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment