Fix order for more details

This commit is contained in:
Pascal Vizeli 2020-08-11 16:07:33 +00:00
parent 7d6b00ea4a
commit e70c9d8a30

View File

@ -116,6 +116,11 @@ class Core(CoreSysAttributes):
# Load secrets
await self.sys_secrets.load()
async def start(self):
"""Start Supervisor orchestration."""
self.state = CoreStates.STARTUP
await self.sys_api.start()
# Check if system is healthy
if not self.sys_supported:
_LOGGER.critical("System running in a unsupported environment!")
@ -124,11 +129,6 @@ class Core(CoreSysAttributes):
"System running in a unhealthy state and need manual intervention!"
)
async def start(self):
"""Start Supervisor orchestration."""
self.state = CoreStates.STARTUP
await self.sys_api.start()
# Mark booted partition as healthy
if self.sys_hassos.available:
await self.sys_hassos.mark_healthy()