From 38284e036d37f97652771ca6f699a1d9a19915d3 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Thu, 10 Aug 2017 11:08:43 +0200 Subject: [PATCH] Move system into startup protection (#145) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add an optional extended description… --- hassio/core.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hassio/core.py b/hassio/core.py index b2cebed7c..059b99a55 100644 --- a/hassio/core.py +++ b/hassio/core.py @@ -138,15 +138,15 @@ class HassIO(object): await self.api.start() _LOGGER.info("Start hassio api on %s", self.config.api_endpoint) - # start addon mark as system - await self.addons.auto_boot(STARTUP_SYSTEM) - try: # HomeAssistant is already running / supervisor have only reboot if await self.homeassistant.is_running(): _LOGGER.info("HassIO reboot detected") return + # start addon mark as system + await self.addons.auto_boot(STARTUP_SYSTEM) + # start addon mark as services await self.addons.auto_boot(STARTUP_SERVICES)