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."""
import logging
from aiohttp.web_exceptions import HTTPServiceUnavailable
from .util import api_process, json_loads
from ..const import ATTR_VERSION

View File

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

View File

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