mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-19 07:06:30 +00:00
fix lint
This commit is contained in:
parent
bea52bce63
commit
c55357a4e7
@ -1,4 +1,5 @@
|
|||||||
"""Init file for HassIO homeassistant rest api."""
|
"""Init file for HassIO homeassistant rest api."""
|
||||||
|
import asyncio
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from .util import api_process, json_loads
|
from .util import api_process, json_loads
|
||||||
|
@ -27,7 +27,7 @@ def api_process(method):
|
|||||||
answer = await method(api, *args, **kwargs)
|
answer = await method(api, *args, **kwargs)
|
||||||
except RuntimeError as err:
|
except RuntimeError as err:
|
||||||
return api_return_error(message=str(err))
|
return api_return_error(message=str(err))
|
||||||
|
|
||||||
if isinstance(answer, dict):
|
if isinstance(answer, dict):
|
||||||
return api_return_ok(data=answer)
|
return api_return_ok(data=answer)
|
||||||
elif answer:
|
elif answer:
|
||||||
|
@ -177,7 +177,8 @@ class DockerBase(object):
|
|||||||
old_image = "{}:{}".format(self.image, self.version)
|
old_image = "{}:{}".format(self.image, self.version)
|
||||||
old_run = self._is_running()
|
old_run = self._is_running()
|
||||||
|
|
||||||
_LOGGER.info("Update docker %s with {}:{}.", self.image, tag)
|
_LOGGER.info("Update docker %s with %s:%s.",
|
||||||
|
old_image, self.image, tag)
|
||||||
|
|
||||||
# update docker image
|
# update docker image
|
||||||
if self._install(tag):
|
if self._install(tag):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user