Merge pull request #1218 from home-assistant/dev

Release 176
This commit is contained in:
Pascal Vizeli 2019-08-15 14:50:55 +02:00 committed by GitHub
commit 62e92fada9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 7 deletions

View File

@ -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"

View File

@ -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

View File

@ -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):

View File

@ -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

View File

@ -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