From 7b721ad8c6bf0eb6bea922ffe0a63df101cc833a Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Fri, 30 Oct 2020 16:16:07 +0100 Subject: [PATCH] Fix initialized state on dead/removing/pause containers (#2197) --- supervisor/docker/homeassistant.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/supervisor/docker/homeassistant.py b/supervisor/docker/homeassistant.py index 8435ef7cd..f43aa59fd 100644 --- a/supervisor/docker/homeassistant.py +++ b/supervisor/docker/homeassistant.py @@ -185,4 +185,8 @@ class DockerHomeAssistant(DockerInterface): if docker_container.image.id != docker_image.id: return False + # Check of correct state + if docker_container.status not in ("exited", "running", "created"): + return False + return True