Change flow and start landingpage faster (#189)

* Change flow and start landingpage faster

* run homeassistant after install

* Update homeassistant.py
This commit is contained in:
Pascal Vizeli 2017-09-16 14:45:36 +02:00 committed by GitHub
parent 1f07d47fd6
commit f39006be01

View File

@ -109,6 +109,9 @@ class HomeAssistant(JsonConfig):
_LOGGER.warning("Fails install landingpage, retry after 60sec")
await asyncio.sleep(60, loop=self.loop)
# run landingpage after installation
await self.docker.run()
async def install(self):
"""Install a landingpage."""
_LOGGER.info("Setup HomeAssistant")
@ -123,8 +126,10 @@ class HomeAssistant(JsonConfig):
_LOGGER.warning("Error on install HomeAssistant. Retry in 60sec")
await asyncio.sleep(60, loop=self.loop)
# store version
# finishing
_LOGGER.info("HomeAssistant docker now installed")
if self.boot:
await self.docker.run()
await self.docker.cleanup()
async def update(self, version=None):