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

@@ -170,10 +170,6 @@ class ZHADevice:
await self._execute_listener_tasks('async_initialize', from_cache)
_LOGGER.debug('%s: completed initialization', self.name)
async def async_accept_messages(self):
"""Start accepting messages from the zigbee network."""
await self._execute_listener_tasks('accept_messages')
async def _execute_listener_tasks(self, task_name, *args):
"""Gather and execute a set of listener tasks."""
listener_tasks = []