Cleanup zha listener lifecycle (#20789)

This commit is contained in:
David F. Mulcahey authored and Martin Hjelmare committed 2019-02-07 09:23:01 +01:00
1 parent 03ab152c82
commit d4c34c6b02
9 files changed
+2 -39

No files matched your search

-2
View File
@@ -147,8 +147,6 @@ async def async_setup_entry(hass, config_entry):
)
zha_gateway = ZHAGateway(hass, config)
hass.bus.async_listen_once(
ha_const.EVENT_HOMEASSISTANT_START, zha_gateway.accept_zigbee_messages)
# Patch handle_message until zigpy can provide an event here
def handle_message(sender, is_reply, profile, cluster,