devices = vera_controller.get_devices(["Switch", "Armable Sensor"])
except RequestException as inst:
// There was a network related error connecting to the vera controller
_LOGGER.error("Could not find Vera switches: %s", inst)
return False
vera_switches = []
for device in devices:
After Change
devices = vera_controller.get_devices(["Switch", "Armable Sensor"])
except RequestException:
// There was a network related error connecting to the vera controller
_LOGGER.exception("Error communicating with Vera API")
return False
vera_switches = []
for device in devices: