diff --git a/hassio/const.py b/hassio/const.py index 55954018c..e15b3893f 100644 --- a/hassio/const.py +++ b/hassio/const.py @@ -3,7 +3,7 @@ from pathlib import Path from ipaddress import ip_network -HASSIO_VERSION = "175" +HASSIO_VERSION = "176" URL_HASSIO_ADDONS = "https://github.com/home-assistant/hassio-addons" URL_HASSIO_VERSION = "https://version.home-assistant.io/{channel}.json" diff --git a/hassio/dns.py b/hassio/dns.py index 949e07bfc..2a4cad846 100644 --- a/hassio/dns.py +++ b/hassio/dns.py @@ -324,7 +324,7 @@ class CoreDNS(JsonConfig, CoreSysAttributes): for line in resolv.readlines(): resolv_lines.append(line) except OSError as err: - _LOGGER.error("Can't read local resolve: %s", err) + _LOGGER.error("Can't read local resolv: %s", err) raise CoreDNSError() from None if nameserver in resolv_lines: @@ -338,5 +338,5 @@ class CoreDNS(JsonConfig, CoreSysAttributes): for line in resolv_lines: resolv.write(line) except OSError as err: - _LOGGER.error("Can't write local resolve: %s", err) + _LOGGER.error("Can't write local resolv: %s", err) raise CoreDNSError() from None diff --git a/hassio/docker/interface.py b/hassio/docker/interface.py index d55355c22..02f8c6485 100644 --- a/hassio/docker/interface.py +++ b/hassio/docker/interface.py @@ -250,7 +250,7 @@ class DockerInterface(CoreSysAttributes): self, tag: str, image: Optional[str] = None, latest: bool = False ) -> Awaitable[None]: """Update a Docker image.""" - return self.sys_run_in_executor(self._update, tag, image) + return self.sys_run_in_executor(self._update, tag, image, latest) def _update( self, tag: str, image: Optional[str] = None, latest: bool = False @@ -266,7 +266,7 @@ class DockerInterface(CoreSysAttributes): ) # Update docker image - self._install(tag, image, latest) + self._install(tag, image=image, latest=latest) # Stop container & cleanup with suppress(DockerAPIError): diff --git a/hassio/supervisor.py b/hassio/supervisor.py index 644dc30f8..c18c92d0b 100644 --- a/hassio/supervisor.py +++ b/hassio/supervisor.py @@ -109,7 +109,7 @@ class Supervisor(CoreSysAttributes): _LOGGER.info("Update Supervisor to version %s", version) try: - await self.instance.install(version, latest=True) + await self.instance.update(version, latest=True) except DockerAPIError: _LOGGER.error("Update of Hass.io fails!") raise SupervisorUpdateError() from None diff --git a/requirements.txt b/requirements.txt index 56f1ba865..553c8b8b8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,7 +6,7 @@ colorlog==4.0.2 cpe==1.2.1 cryptography==2.7 docker==4.0.2 -gitpython==3.0.0 +gitpython==3.0.1 pytz==2019.2 pyudev==0.21.0 uvloop==0.12.2