mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Rename strategy backup to automatic backup (#133489)
* Rename strategy backup to automatic backup * Update homeassistant/components/backup/config.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> --------- Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
@@ -260,8 +260,8 @@ async def test_async_initiate_backup(
|
||||
assert result["result"] == {
|
||||
"backups": [],
|
||||
"agent_errors": {},
|
||||
"last_attempted_strategy_backup": None,
|
||||
"last_completed_strategy_backup": None,
|
||||
"last_attempted_automatic_backup": None,
|
||||
"last_completed_automatic_backup": None,
|
||||
}
|
||||
|
||||
await ws_client.send_json_auto_id({"type": "backup/subscribe_events"})
|
||||
@@ -424,8 +424,8 @@ async def test_async_initiate_backup_with_agent_error(
|
||||
assert result["result"] == {
|
||||
"backups": [],
|
||||
"agent_errors": {},
|
||||
"last_attempted_strategy_backup": None,
|
||||
"last_completed_strategy_backup": None,
|
||||
"last_attempted_automatic_backup": None,
|
||||
"last_completed_automatic_backup": None,
|
||||
}
|
||||
|
||||
await ws_client.send_json_auto_id({"type": "backup/subscribe_events"})
|
||||
@@ -496,7 +496,7 @@ async def test_async_initiate_backup_with_agent_error(
|
||||
"name": "Core 2025.1.0",
|
||||
"protected": False,
|
||||
"size": 123,
|
||||
"with_strategy_settings": False,
|
||||
"with_automatic_settings": False,
|
||||
}
|
||||
|
||||
await ws_client.send_json_auto_id(
|
||||
@@ -513,8 +513,8 @@ async def test_async_initiate_backup_with_agent_error(
|
||||
assert result["result"] == {
|
||||
"agent_errors": {},
|
||||
"backups": [expected_backup_data],
|
||||
"last_attempted_strategy_backup": None,
|
||||
"last_completed_strategy_backup": None,
|
||||
"last_attempted_automatic_backup": None,
|
||||
"last_completed_automatic_backup": None,
|
||||
}
|
||||
|
||||
await hass.async_block_till_done()
|
||||
@@ -522,7 +522,7 @@ async def test_async_initiate_backup_with_agent_error(
|
||||
{
|
||||
"backup_id": "abc123",
|
||||
"failed_agent_ids": ["test.remote"],
|
||||
"with_strategy_settings": False,
|
||||
"with_automatic_settings": False,
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user