From 930a32de1a6832eda5997f4ac72cc6a91e2a5edc Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Thu, 15 Aug 2019 12:42:21 +0200 Subject: [PATCH] Fix latest issue (#1214) * Fix latest issue * Use also update now * Fix style --- hassio/docker/interface.py | 4 ++-- hassio/supervisor.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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