mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Cleanup zha listener lifecycle (#20789)
This commit is contained in:
committed by
Martin Hjelmare
parent
03ab152c82
commit
d4c34c6b02
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user