diff --git a/hassio/homeassistant.py b/hassio/homeassistant.py index a4b8e57fb..91c47ce4a 100644 --- a/hassio/homeassistant.py +++ b/hassio/homeassistant.py @@ -471,21 +471,18 @@ class HomeAssistant(JsonConfig, CoreSysAttributes): while True: await asyncio.sleep(10) - # 1 - # Check if Container is is_running + # 1: Check if Container is is_running if not await self.instance.is_running(): _LOGGER.error("Home Assistant has crashed!") break - # 2 - # Check if API response + # 2: Check if API response if await self.sys_run_in_executor(check_port): _LOGGER.info("Detect a running Home Assistant instance") self._error_state = False return - # 3 - # Running DB Migration + # 3: Running DB Migration if migration_file.exists(): if not migration_progress: migration_progress = True @@ -496,8 +493,7 @@ class HomeAssistant(JsonConfig, CoreSysAttributes): start_time = time.monotonic() _LOGGER.info("Home Assistant record migration done") - # 4 - # Timeout + # 4: Timeout if time.monotonic() - start_time > self.wait_boot: _LOGGER.warning( "Don't wait anymore of Home Assistant startup!")