Added spcific exception type for failure to communicate with Vera controller
This commit is contained in:
1 parent
6dc18ba603
commit
38fbc3595a
3 files changed
+6
-7
No files matched your search
@@ -83,8 +83,8 @@ def get_devices(hass, config):
|
||||
devices = []
|
||||
try:
|
||||
devices = vera_controller.get_devices(categories)
|
||||
# pylint: disable=broad-except
|
||||
except Exception as inst:
|
||||
except IOError as inst:
|
||||
# There was a network related error connecting to the vera controller
|
||||
_LOGGER.error("Could not find Vera sensors: %s", inst)
|
||||
return False
|
||||
|
||||
|
||||
Reference in new issue
Block a user