Updated with new switch category for UI7 firmware update and fixed excpetion when trippable sensor has never been tripped

This commit is contained in:
jamespcole 2015-05-18 18:54:25 +10:00
parent a4e0a7f235
commit 1c47ade641
3 changed files with 17 additions and 13 deletions

View file

@ -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")