Fix lint v2

This commit is contained in:
pvizeli 2017-04-03 17:11:15 +02:00
parent 0e9fb43669
commit ffdbbcc104
3 changed files with 3 additions and 5 deletions

View File

@ -1,8 +1,6 @@
"""Init file for HassIO homeassistant rest api.""" """Init file for HassIO homeassistant rest api."""
import logging import logging
from aiohttp.web_exceptions import HTTPServiceUnavailable
from .util import api_process, json_loads from .util import api_process, json_loads
from ..const import ATTR_VERSION from ..const import ATTR_VERSION

View File

@ -52,7 +52,7 @@ class CoreConfig(object):
"""Read current versions from web.""" """Read current versions from web."""
current = await fetch_current_versions(self.websession) current = await fetch_current_versions(self.websession)
if avilable_updates: if current:
self._data.update({ self._data.update({
HOMEASSISTANT_CURRENT: current.get('homeassistant_tag'), HOMEASSISTANT_CURRENT: current.get('homeassistant_tag'),
HASSIO_CURRENT: current.get('hassio_tag'), HASSIO_CURRENT: current.get('hassio_tag'),

View File

@ -5,10 +5,10 @@ import logging
import aiohttp import aiohttp
import docker import docker
from . import bootstrap, tools from . import bootstrap
from .api import RestAPI from .api import RestAPI
from .host_controll import HostControll from .host_controll import HostControll
from .const import HOMEASSISTANT_TAG, SOCKET_DOCKER from .const import SOCKET_DOCKER
from .dock.homeassistant import DockerHomeAssistant from .dock.homeassistant import DockerHomeAssistant
from .dock.supervisor import DockerSupervisor from .dock.supervisor import DockerSupervisor