Start API server before he beform a self update
@@ -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)
