Updated with new switch category for UI7 firmware update and fixed excpetion when trippable sensor has never been tripped
This commit is contained in:
parent
a4e0a7f235
commit
1c47ade641
3 changed files with 17 additions and 13 deletions
|
@ -77,7 +77,7 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None):
|
|||
controller = veraApi.VeraController(base_url)
|
||||
devices = []
|
||||
try:
|
||||
devices = controller.get_devices('Switch')
|
||||
devices = controller.get_devices(['Switch', 'On/Off Switch'])
|
||||
except RequestException:
|
||||
# There was a network related error connecting to the vera controller
|
||||
_LOGGER.exception("Error communicating with Vera API")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue