Show landingpage soon as possible (#1480)

This commit is contained in:
Pascal Vizeli 2020-02-06 09:31:52 +01:00 committed by GitHub
parent 4f97bb9e0b
commit 8115d2b3d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -243,10 +243,14 @@ class HomeAssistant(JsonConfig, CoreSysAttributes):
_LOGGER.warning("Fails install landingpage, retry after 30sec") _LOGGER.warning("Fails install landingpage, retry after 30sec")
await asyncio.sleep(30) await asyncio.sleep(30)
else: else:
self.version = self.instance.version
self.save_data()
break break
self.version = self.instance.version # Start landingpage
self.save_data() _LOGGER.info("Start HomeAssistant landingpage")
with suppress(HomeAssistantError):
await self._start()
@process_lock @process_lock
async def install(self) -> None: async def install(self) -> None: