This commit is contained in:
pvizeli 2017-04-04 09:50:39 +02:00
parent bea52bce63
commit c55357a4e7
3 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,5 @@
"""Init file for HassIO homeassistant rest api."""
import asyncio
import logging
from .util import api_process, json_loads

View File

@ -27,7 +27,7 @@ def api_process(method):
answer = await method(api, *args, **kwargs)
except RuntimeError as err:
return api_return_error(message=str(err))
if isinstance(answer, dict):
return api_return_ok(data=answer)
elif answer:

View File

@ -177,7 +177,8 @@ class DockerBase(object):
old_image = "{}:{}".format(self.image, self.version)
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
if self._install(tag):