Cleanup zha listener lifecycle (#20789)
This commit is contained in:
1 parent
03ab152c82
commit
d4c34c6b02
9 files changed
+2
-39
No files matched your search
@@ -161,7 +161,6 @@ def make_entity_id(domain, device, cluster, use_suffix=True):
|
||||
|
||||
async def async_enable_traffic(hass, zha_gateway, zha_devices):
|
||||
"""Allow traffic to flow through the gateway and the zha device."""
|
||||
await zha_gateway.accept_zigbee_messages({})
|
||||
for zha_device in zha_devices:
|
||||
zha_device.update_available(True)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
@@ -26,7 +26,6 @@ async def test_fan(hass, config_entry, zha_gateway):
|
||||
# load up fan domain
|
||||
await hass.config_entries.async_forward_entry_setup(
|
||||
config_entry, DOMAIN)
|
||||
await zha_gateway.accept_zigbee_messages({})
|
||||
await hass.async_block_till_done()
|
||||
|
||||
cluster = zigpy_device.endpoints.get(1).fan
|
||||
|
||||
@@ -40,7 +40,6 @@ async def test_light(hass, config_entry, zha_gateway):
|
||||
# load up light domain
|
||||
await hass.config_entries.async_forward_entry_setup(
|
||||
config_entry, DOMAIN)
|
||||
await zha_gateway.accept_zigbee_messages({})
|
||||
await hass.async_block_till_done()
|
||||
|
||||
# on off light
|
||||
|
||||
@@ -103,7 +103,6 @@ async def async_build_devices(hass, zha_gateway, config_entry, cluster_ids):
|
||||
# load up sensor domain
|
||||
await hass.config_entries.async_forward_entry_setup(
|
||||
config_entry, DOMAIN)
|
||||
await zha_gateway.accept_zigbee_messages({})
|
||||
await hass.async_block_till_done()
|
||||
|
||||
# put the other relevant info in the device info dict
|
||||
|
||||
@@ -24,7 +24,6 @@ async def test_switch(hass, config_entry, zha_gateway):
|
||||
# load up switch domain
|
||||
await hass.config_entries.async_forward_entry_setup(
|
||||
config_entry, DOMAIN)
|
||||
await zha_gateway.accept_zigbee_messages({})
|
||||
await hass.async_block_till_done()
|
||||
|
||||
cluster = zigpy_device.endpoints.get(1).on_off
|
||||
|
||||
Reference in new issue
Block a user