mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-09 10:16:29 +00:00
Fix lint v2
This commit is contained in:
parent
0e9fb43669
commit
ffdbbcc104
@ -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
|
||||||
|
|
||||||
|
@ -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'),
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user