From 7c9437c6ee0af9b3762660ad995426c9c975e869 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Wed, 8 May 2019 22:37:05 +0200 Subject: [PATCH] Bugfixes / increase Home Assistant timeout (#1077) * Fix small bugs with new store * Add more timeout to homeassistant --- hassio/docker/homeassistant.py | 5 +++++ hassio/snapshots/__init__.py | 2 +- hassio/tasks.py | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/hassio/docker/homeassistant.py b/hassio/docker/homeassistant.py index a8f86eeef..29c196628 100644 --- a/hassio/docker/homeassistant.py +++ b/hassio/docker/homeassistant.py @@ -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.""" diff --git a/hassio/snapshots/__init__.py b/hassio/snapshots/__init__.py index 10ad40385..a46fe1351 100644 --- a/hassio/snapshots/__init__.py +++ b/hassio/snapshots/__init__.py @@ -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()) diff --git a/hassio/tasks.py b/hassio/tasks.py index 58f330617..e8f7f53b3 100644 --- a/hassio/tasks.py +++ b/hassio/tasks.py @@ -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