mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-13 12:16:29 +00:00
Small fixes
This commit is contained in:
parent
3e7f0a82c0
commit
c74228adca
@ -54,7 +54,7 @@ class HassIO(object):
|
||||
"Connected to HostControll. OS: %s Version: %s Hostname: %s "
|
||||
"Feature-lvl: %d", host_info.get('os'),
|
||||
host_info.get('version'), host_info.get('hostname'),
|
||||
host_info.get('level'))
|
||||
host_info.get('level', 0))
|
||||
|
||||
# rest api views
|
||||
self.api.register_host(self.host_controll)
|
||||
|
@ -106,7 +106,7 @@ class DockerBase(object):
|
||||
async def attach(self):
|
||||
"""Attach to running docker container."""
|
||||
if self._lock.locked:
|
||||
_LOGGER.error("Can't excute stop while a task is in progress")
|
||||
_LOGGER.error("Can't excute attach while a task is in progress")
|
||||
return False
|
||||
|
||||
async with self._lock:
|
||||
|
@ -56,8 +56,8 @@ class DockerHomeAssistant(DockerBase):
|
||||
|
||||
self.version = get_version_from_env(
|
||||
self.container.attrs['Config']['Env'])
|
||||
except docker.errors.DockerException:
|
||||
_LOGGER.error("Can't run %s", self.image)
|
||||
except docker.errors.DockerException as err:
|
||||
_LOGGER.error("Can't run %s -> %s.", self.image, err)
|
||||
return False
|
||||
|
||||
return True
|
||||
|
Loading…
x
Reference in New Issue
Block a user