mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-19 07:06:30 +00:00
Bugfixes / increase Home Assistant timeout (#1077)
* Fix small bugs with new store * Add more timeout to homeassistant
This commit is contained in:
parent
9ce9e10dfd
commit
7c9437c6ee
@ -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."""
|
||||
|
@ -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())
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user