mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-18 22:56:31 +00:00
Start API server before he beform a self update (#1189)
This commit is contained in:
parent
2fc5e3b7d9
commit
e5f0d80d96
@ -74,6 +74,8 @@ class HassIO(CoreSysAttributes):
|
||||
|
||||
async def start(self):
|
||||
"""Start Hass.io orchestration."""
|
||||
await self.sys_api.start()
|
||||
|
||||
# on release channel, try update itself
|
||||
if self.sys_supervisor.need_update:
|
||||
try:
|
||||
@ -87,9 +89,6 @@ class HassIO(CoreSysAttributes):
|
||||
"future version of Home Assistant!"
|
||||
)
|
||||
|
||||
# start api
|
||||
await self.sys_api.start()
|
||||
|
||||
# start addon mark as initialize
|
||||
await self.sys_addons.boot(STARTUP_INITIALIZE)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user