Add unhealthy if update fails on startup

This commit is contained in:
Pascal Vizeli 2020-11-24 12:51:16 +00:00
parent b6bc6b8498
commit 84294f286f

View File

@ -162,6 +162,7 @@ class Core(CoreSysAttributes):
"Can't update Supervisor! This will break some Add-ons or affect "
"future version of Home Assistant!"
)
self.sys_resolution.unhealthy = UnhealthyReason.SUPERVISOR
self.sys_capture_exception(err)
# Start addon mark as initialize