Bugfixes / increase Home Assistant timeout (#1077)

* Fix small bugs with new store

* Add more timeout to homeassistant
This commit is contained in:
Pascal Vizeli 2019-05-08 22:37:05 +02:00 committed by GitHub
parent 9ce9e10dfd
commit 7c9437c6ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View File

@ -35,6 +35,11 @@ class DockerHomeAssistant(DockerInterface):
"""Return name of Docker container."""
return HASS_DOCKER_NAME
@property
def timeout(self) -> str:
"""Return timeout for Docker actions."""
return 60
@property
def devices(self):
"""Create list of special device to map into Docker."""

View File

@ -240,7 +240,7 @@ class SnapshotManager(CoreSysAttributes):
# Delete delta add-ons
tasks.clear()
for addon in self.sys_addons.list_installed:
for addon in self.sys_addons.installed:
if addon.slug not in snapshot.addon_list:
tasks.append(addon.uninstall())

View File

@ -89,7 +89,7 @@ class Tasks(CoreSysAttributes):
async def _update_addons(self):
"""Check if an update is available for an Add-on and update it."""
tasks = []
for addon in self.sys_addons.list_addons:
for addon in self.sys_addons.all:
if not addon.is_installed or not addon.auto_update:
continue