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