fix 1-wire updating while busy

This commit is contained in:
Andrey
2021-01-29 09:08:34 +03:00
parent 72cf516353
commit 3978ce2203
2 changed files with 12 additions and 6 deletions

View File

@@ -161,6 +161,7 @@ async def async_remove_entry(hass, entry) -> None:
return
_LOGGER.debug(f'remove {id}')
_hubs.pop(id, None)
hass.data[DOMAIN].pop(id, None)
task: asyncio.Task = _POLL_TASKS.pop(id, None)
if task is not None:
task.cancel()