From a0b5d0b67e482aaaa7fc64e81650c05bbc9e04e6 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Mon, 14 Jan 2019 21:25:17 +0100 Subject: [PATCH] Fix error on first run because the landing page already run (#886) * Fix error on first run because the landing page already run * Update homeassistant.py --- hassio/homeassistant.py | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/hassio/homeassistant.py b/hassio/homeassistant.py index 91c47ce4a..38ee998f9 100644 --- a/hassio/homeassistant.py +++ b/hassio/homeassistant.py @@ -211,15 +211,8 @@ class HomeAssistant(JsonConfig, CoreSysAttributes): while True: if await self.instance.install('landingpage'): break - _LOGGER.warning("Fails install landingpage, retry after 60sec") - await asyncio.sleep(60) - - # Run landingpage after installation - _LOGGER.info("Start landing page") - try: - await self._start() - except HomeAssistantError: - _LOGGER.warning("Can't start landing page") + _LOGGER.warning("Fails install landingpage, retry after 30sec") + await asyncio.sleep(30) @process_lock async def install(self): @@ -233,8 +226,8 @@ class HomeAssistant(JsonConfig, CoreSysAttributes): tag = self.last_version if tag and await self.instance.install(tag): break - _LOGGER.warning("Error on install Home Assistant. Retry in 60sec") - await asyncio.sleep(60) + _LOGGER.warning("Error on install Home Assistant. Retry in 30sec") + await asyncio.sleep(30) # finishing _LOGGER.info("Home Assistant docker now installed")