1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 04:50:05 +00:00

Use JSON as format for .HA_RESTORE (#129792)

* Use JSON as format for .HA_RESTORE

* Adjust bakup manager test
This commit is contained in:
Joakim Sørensen
2024-11-04 13:07:11 +01:00
committed by GitHub
parent ae06f734ce
commit 3cadc1796f
4 changed files with 7 additions and 12 deletions

View File

@@ -350,7 +350,7 @@ async def test_async_trigger_restore(
patch("homeassistant.core.ServiceRegistry.async_call") as mocked_service_call,
):
await manager.async_restore_backup(TEST_BACKUP.slug)
assert mocked_write_text.call_args[0][0] == "abc123.tar;"
assert mocked_write_text.call_args[0][0] == '{"path": "abc123.tar"}'
assert mocked_service_call.called