Fix UnboundLocalError (#3153)

This commit is contained in:
Pascal Vizeli 2021-09-27 09:44:15 +02:00 committed by GitHub
parent 4416b6524e
commit b03c8c24dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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", []):