1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 12:29:08 +00:00

Change snapshot create conditions (#2289)

This commit is contained in:
Joakim Sørensen
2020-11-23 22:57:41 +01:00
committed by GitHub
parent 6db6ab96e6
commit cfae20a3ec

View File

@@ -122,7 +122,7 @@ class SnapshotManager(CoreSysAttributes):
self.snapshots_obj[snapshot.slug] = snapshot
return snapshot
@Job(conditions=[JobCondition.FREE_SPACE, JobCondition.HEALTHY])
@Job(conditions=[JobCondition.FREE_SPACE])
async def do_snapshot_full(self, name="", password=None):
"""Create a full snapshot."""
if self.lock.locked():
@@ -158,7 +158,7 @@ class SnapshotManager(CoreSysAttributes):
self.sys_core.state = CoreState.RUNNING
self.lock.release()
@Job(conditions=[JobCondition.FREE_SPACE, JobCondition.HEALTHY])
@Job(conditions=[JobCondition.FREE_SPACE])
async def do_snapshot_partial(
self, name="", addons=None, folders=None, password=None
):