mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-26 02:26:30 +00:00
fix wrong startup blocking
This commit is contained in:
parent
c2918d4519
commit
563e0c1e0e
@ -174,8 +174,7 @@ class HomeAssistant(JsonConfig, CoreSysAttributes):
|
|||||||
await asyncio.sleep(60, loop=self._loop)
|
await asyncio.sleep(60, loop=self._loop)
|
||||||
|
|
||||||
# Run landingpage after installation
|
# Run landingpage after installation
|
||||||
await self.instance.run()
|
await self._start()
|
||||||
await self._block_till_run()
|
|
||||||
|
|
||||||
@process_lock
|
@process_lock
|
||||||
async def install(self):
|
async def install(self):
|
||||||
@ -195,8 +194,7 @@ class HomeAssistant(JsonConfig, CoreSysAttributes):
|
|||||||
# finishing
|
# finishing
|
||||||
_LOGGER.info("HomeAssistant docker now installed")
|
_LOGGER.info("HomeAssistant docker now installed")
|
||||||
if self.boot:
|
if self.boot:
|
||||||
await self.instance.run()
|
await self._start()
|
||||||
await self._block_till_run()
|
|
||||||
await self.instance.cleanup()
|
await self.instance.cleanup()
|
||||||
|
|
||||||
@process_lock
|
@process_lock
|
||||||
@ -214,8 +212,12 @@ class HomeAssistant(JsonConfig, CoreSysAttributes):
|
|||||||
return await self.instance.update(version)
|
return await self.instance.update(version)
|
||||||
finally:
|
finally:
|
||||||
if running:
|
if running:
|
||||||
await self.instance.run()
|
await self._start()
|
||||||
await self._block_till_run()
|
|
||||||
|
async def _start(self):
|
||||||
|
"""Start HomeAssistant docker & wait."""
|
||||||
|
if await self.instance.run():
|
||||||
|
await self._block_till_run()
|
||||||
|
|
||||||
@process_lock
|
@process_lock
|
||||||
async def start(self):
|
async def start(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user