Clean deCONZ tests to depend less on integration code (#41015)

This commit is contained in:
Robert Svensson 2020-10-02 11:20:33 +02:00 committed by GitHub
parent dfe3ee5387
commit 552856203b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 237 additions and 354 deletions

View file

@ -37,7 +37,8 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
):
entities.append(DeconzCover(light, gateway))
async_add_entities(entities, True)
if entities:
async_add_entities(entities, True)
gateway.listeners.append(
async_dispatcher_connect(