1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 20:35:55 +00:00

Fixing IO on the loop with docker HW events (#3422)

This commit is contained in:
Pascal Vizeli
2022-01-26 17:41:00 +01:00
committed by GitHub
parent a60f25100d
commit 8d8704e049

View File

@@ -684,7 +684,9 @@ class DockerAddon(DockerInterface):
return
try:
docker_container = self.sys_docker.containers.get(self.name)
docker_container = await self.sys_run_in_executor(
self.sys_docker.containers.get, self.name
)
except docker.errors.NotFound:
self.sys_bus.remove_listener(self._hw_listener)
self._hw_listener = None