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

This commit is contained in:
Robert Svensson authored and GitHub committed 2020-10-02 11:20:33 +02:00
1 parent dfe3ee5387
commit 552856203b
16 files changed
+237 -354

No files matched your search

@@ -55,7 +55,8 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
):
entities.append(DeconzBinarySensor(sensor, gateway))
async_add_entities(entities, True)
if entities:
async_add_entities(entities, True)
gateway.listeners.append(
async_dispatcher_connect(