mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-27 02:56:31 +00:00
Fix lint
This commit is contained in:
parent
c4c1ce8e64
commit
dc566f64b2
@ -1,5 +1,4 @@
|
|||||||
"""Bootstrap HassIO."""
|
"""Bootstrap HassIO."""
|
||||||
import json
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import stat
|
import stat
|
||||||
|
@ -49,7 +49,7 @@ class HassIO(object):
|
|||||||
|
|
||||||
# first start of supervisor?
|
# first start of supervisor?
|
||||||
if self.config.homeassistant_tag is None:
|
if self.config.homeassistant_tag is None:
|
||||||
_LOGGER.info("First start of supervisor, read version from github.")
|
_LOGGER.info("No HomeAssistant docker found. Install it now")
|
||||||
|
|
||||||
# read homeassistant tag and install it
|
# read homeassistant tag and install it
|
||||||
current = None
|
current = None
|
||||||
@ -57,7 +57,7 @@ class HassIO(object):
|
|||||||
current = await tools.fetch_current_versions(self.websession)
|
current = await tools.fetch_current_versions(self.websession)
|
||||||
if current and HOMEASSISTANT_TAG in current:
|
if current and HOMEASSISTANT_TAG in current:
|
||||||
resp = await self.homeassistant.install(
|
resp = await self.homeassistant.install(
|
||||||
current[HOMEASSISTANT_TAG]):
|
current[HOMEASSISTANT_TAG])
|
||||||
if resp:
|
if resp:
|
||||||
break
|
break
|
||||||
_LOGGER.warning("Can't fetch info from github. Retry in 60.")
|
_LOGGER.warning("Can't fetch info from github. Retry in 60.")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user