Remove unnecessary try around import
parent
3c05c8d1db
commit
f192a15a8f
|
@ -33,11 +33,7 @@ def setup(hass, config):
|
||||||
_LOGGER):
|
_LOGGER):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
try:
|
import insteon
|
||||||
import insteon
|
|
||||||
except ImportError:
|
|
||||||
_LOGGER.error("Error while importing dependency Insteon.")
|
|
||||||
return False
|
|
||||||
|
|
||||||
username = config[DOMAIN][CONF_USERNAME]
|
username = config[DOMAIN][CONF_USERNAME]
|
||||||
password = config[DOMAIN][CONF_PASSWORD]
|
password = config[DOMAIN][CONF_PASSWORD]
|
||||||
|
|
Loading…
Reference in New Issue