Cleanup zha listener lifecycle (#20789)

This commit is contained in:
David F. Mulcahey 2019-02-07 03:23:01 -05:00 committed by Martin Hjelmare
parent 03ab152c82
commit d4c34c6b02
9 changed files with 2 additions and 39 deletions

View file

@ -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 = []