From 0e9fb436694bf73ecb7d6853d24625c7a4309b5a Mon Sep 17 00:00:00 2001 From: pvizeli Date: Mon, 3 Apr 2017 17:09:14 +0200 Subject: [PATCH] Fix lint --- hassio_api/hassio/api/homeassistant.py | 2 +- hassio_api/hassio/api/host.py | 2 +- hassio_api/hassio/config.py | 4 ++-- hassio_api/hassio/core.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hassio_api/hassio/api/homeassistant.py b/hassio_api/hassio/api/homeassistant.py index aafcc9379..d37d5a7be 100644 --- a/hassio_api/hassio/api/homeassistant.py +++ b/hassio_api/hassio/api/homeassistant.py @@ -33,4 +33,4 @@ class APIHomeAssistant(object): body = await request.json(loads=json_loads) version = body.get(ATTR_VERSION, self.config.current_homeassistant) - return await self.dock_hass.update(version): + return await self.dock_hass.update(version) diff --git a/hassio_api/hassio/api/host.py b/hassio_api/hassio/api/host.py index 3ceadb997..dc62dfe3d 100644 --- a/hassio_api/hassio/api/host.py +++ b/hassio_api/hassio/api/host.py @@ -1,7 +1,7 @@ """Init file for HassIO host rest api.""" import logging -from .util import api_process_hostcontroll +from .util import api_process_hostcontroll, json_loads from ..const import ATTR_VERSION _LOGGER = logging.getLogger(__name__) diff --git a/hassio_api/hassio/config.py b/hassio_api/hassio/config.py index a159148a5..e39673c3c 100644 --- a/hassio_api/hassio/config.py +++ b/hassio_api/hassio/config.py @@ -48,9 +48,9 @@ class CoreConfig(object): except OSError: _LOGGER.exception("Can't store config in %s", self._filename) - async def fetch_update_infos(): + async def fetch_update_infos(self): """Read current versions from web.""" - avilable_updates = await fetch_current_versions(self.websession) + current = await fetch_current_versions(self.websession) if avilable_updates: self._data.update({ diff --git a/hassio_api/hassio/core.py b/hassio_api/hassio/core.py index 8b2de4b30..08cd102e6 100644 --- a/hassio_api/hassio/core.py +++ b/hassio_api/hassio/core.py @@ -82,7 +82,7 @@ class HassIO(object): while True: # read homeassistant tag and install it if not self.config.current_homeassistant: - await self.config.fetch_update_infos(): + await self.config.fetch_update_infos() tag = self.config.current_homeassistant if tag and await self.homeassistant.install(tag):