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

Update cache if a backup file is missing (#5596)

* Update cache if a backup file is missing

* Remove references to single file reload
This commit is contained in:
Mike Degatano
2025-02-03 07:46:57 -05:00
committed by GitHub
parent be98e0c0f4
commit 7f39538231
6 changed files with 117 additions and 22 deletions

View File

@@ -222,9 +222,7 @@ async def test_core_backup_cleanup(
# Put an old and new backup in folder
copy(get_fixture_path("backup_example.tar"), coresys.config.path_core_backup)
await coresys.backups.reload(
location=".cloud_backup", filename="backup_example.tar"
)
await coresys.backups.reload()
assert (old_backup := coresys.backups.get("7fed74c8"))
new_backup = await coresys.backups.do_backup_partial(
name="test", folders=["ssl"], location=".cloud_backup"