Remove unnecessary try around import
This commit is contained in:
1 parent
3c05c8d1db
commit
f192a15a8f
1 file changed
+1
-5
@@ -33,11 +33,7 @@ def setup(hass, config):
|
||||
_LOGGER):
|
||||
return False
|
||||
|
||||
try:
|
||||
import insteon
|
||||
except ImportError:
|
||||
_LOGGER.error("Error while importing dependency Insteon.")
|
||||
return False
|
||||
import insteon
|
||||
|
||||
username = config[DOMAIN][CONF_USERNAME]
|
||||
password = config[DOMAIN][CONF_PASSWORD]
|
||||
|
||||
Reference in new issue
Block a user