deCONZ - use entity registry disabled_by to control available entities (#26219)

* First draft

* Support enabling disabled entities

* Clean up

* Move import

* Local entity enabled replaced during rebase

* Add option flow test

* Mark options properties with option
This commit is contained in:
Robert Svensson 2019-09-06 01:38:00 +02:00 committed by Paulus Schoutsen
parent b1c2a5fa08
commit 518d2c31bb
19 changed files with 191 additions and 82 deletions

View file

@ -37,7 +37,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
gateway.listeners.append(
async_dispatcher_connect(
hass, gateway.async_event_new_device(NEW_LIGHT), async_add_switch
hass, gateway.async_signal_new_device(NEW_LIGHT), async_add_switch
)
)