From b03c8c24ddc570c5aec66733804ed92471b362f8 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Mon, 27 Sep 2021 09:44:15 +0200 Subject: [PATCH] Fix UnboundLocalError (#3153) --- supervisor/homeassistant/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/supervisor/homeassistant/core.py b/supervisor/homeassistant/core.py index 57132a89f..91ccaf6b8 100644 --- a/supervisor/homeassistant/core.py +++ b/supervisor/homeassistant/core.py @@ -221,6 +221,7 @@ class HomeAssistantCore(CoreSysAttributes): except HomeAssistantError: # The API stoped responding between the up checks an now self._error_state = True + data = None # Verify that the frontend is loaded if data and "frontend" not in data.get("components", []):