Fix Abode capture_image and trigger_quick_action services (#28546)

* Fix Abode services

* Bump abodepy version

* Updated using dispatcher helper

* Code review fixes

* Removed init method from AbodeQuickActionBinary Sensor
This commit is contained in:
shred86 2019-11-08 22:35:45 -08:00 committed by Martin Hjelmare
parent 45b53c8e82
commit 97224df4fd
13 changed files with 76 additions and 51 deletions

View file

@ -33,12 +33,12 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
"""Set up Abode light devices."""
data = hass.data[DOMAIN]
devices = []
entities = []
for device in data.abode.get_devices(generic_type=CONST.TYPE_LIGHT):
devices.append(AbodeLight(data, device))
entities.append(AbodeLight(data, device))
async_add_entities(devices)
async_add_entities(entities)
class AbodeLight(AbodeDevice, Light):