fix lint p2

This commit is contained in:
Pascal Vizeli 2017-07-11 22:19:22 +02:00
parent 421b380043
commit 40e8f411ff
4 changed files with 7 additions and 4 deletions

View File

@ -11,6 +11,7 @@ from ..const import (
ATTR_URL, ATTR_DESCRIPTON, ATTR_DETACHED, ATTR_NAME, ATTR_REPOSITORY, ATTR_URL, ATTR_DESCRIPTON, ATTR_DETACHED, ATTR_NAME, ATTR_REPOSITORY,
ATTR_BUILD, ATTR_AUTO_UPDATE, ATTR_NETWORK, ATTR_HOST_NETWORK, ATTR_BUILD, ATTR_AUTO_UPDATE, ATTR_NETWORK, ATTR_HOST_NETWORK,
BOOT_AUTO, BOOT_MANUAL) BOOT_AUTO, BOOT_MANUAL)
from ..tools import read_json_file
from ..validate import DOCKER_PORTS from ..validate import DOCKER_PORTS
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)

View File

@ -1,7 +1,6 @@
"""Bootstrap HassIO.""" """Bootstrap HassIO."""
from datetime import datetime from datetime import datetime
import logging import logging
import json
import os import os
from pathlib import Path, PurePath from pathlib import Path, PurePath
@ -9,7 +8,6 @@ import voluptuous as vol
from .const import FILE_HASSIO_CONFIG, HASSIO_DATA from .const import FILE_HASSIO_CONFIG, HASSIO_DATA
from .tools import fetch_last_versions, JsonConfig, validate_timezone from .tools import fetch_last_versions, JsonConfig, validate_timezone
from .validate import HASS_DEVICES
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)

View File

@ -42,7 +42,8 @@ class HassIO(object):
self.supervisor = DockerSupervisor(config, loop, self.dock, self.stop) self.supervisor = DockerSupervisor(config, loop, self.dock, self.stop)
# init homeassistant # init homeassistant
self.homeassistant = HomeAssistant(config, loop, self.dock) self.homeassistant = HomeAssistant(
config, loop, self.dock, self.websession)
# init HostControl # init HostControl
self.host_control = HostControl(loop) self.host_control = HostControl(loop)

View File

@ -4,11 +4,14 @@ import logging
import os import os
from .const import ( from .const import (
FILE_HASSIO_HOMEASSISTANT, ATTR_DEVICES, ATTR_IMAGE, ATTR_LAST_VERSION) FILE_HASSIO_HOMEASSISTANT, ATTR_DEVICES, ATTR_IMAGE, ATTR_LAST_VERSION,
ATTR_VERSION)
from .dock.homeassistant import DockerHomeAssistant from .dock.homeassistant import DockerHomeAssistant
from .tools import JsonConfig from .tools import JsonConfig
from .validate import SCHEMA_HASS_CONFIG from .validate import SCHEMA_HASS_CONFIG
_LOGGER = logging.getLogger(__name__)
class HomeAssistant(JsonConfig): class HomeAssistant(JsonConfig):
"""Hass core object for handle it.""" """Hass core object for handle it."""