mirror of
https://github.com/home-assistant/core.git
synced 2025-08-07 06:35:10 +02:00
Rename remove to delete in backup websocket type (#131023)
This commit is contained in:
@@ -87,7 +87,7 @@ async def handle_details(
|
|||||||
@websocket_api.require_admin
|
@websocket_api.require_admin
|
||||||
@websocket_api.websocket_command(
|
@websocket_api.websocket_command(
|
||||||
{
|
{
|
||||||
vol.Required("type"): "backup/remove",
|
vol.Required("type"): "backup/delete",
|
||||||
vol.Required("backup_id"): str,
|
vol.Required("backup_id"): str,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
@@ -217,7 +217,7 @@ async def test_delete(
|
|||||||
await client.send_json_auto_id({"type": "backup/info"})
|
await client.send_json_auto_id({"type": "backup/info"})
|
||||||
assert await client.receive_json() == snapshot
|
assert await client.receive_json() == snapshot
|
||||||
|
|
||||||
await client.send_json_auto_id({"type": "backup/remove", "backup_id": "abc123"})
|
await client.send_json_auto_id({"type": "backup/delete", "backup_id": "abc123"})
|
||||||
assert await client.receive_json() == snapshot
|
assert await client.receive_json() == snapshot
|
||||||
|
|
||||||
await client.send_json_auto_id({"type": "backup/info"})
|
await client.send_json_auto_id({"type": "backup/info"})
|
||||||
@@ -239,7 +239,7 @@ async def test_agent_delete_backup(
|
|||||||
with patch.object(BackupAgentTest, "async_delete_backup") as delete_mock:
|
with patch.object(BackupAgentTest, "async_delete_backup") as delete_mock:
|
||||||
await client.send_json_auto_id(
|
await client.send_json_auto_id(
|
||||||
{
|
{
|
||||||
"type": "backup/remove",
|
"type": "backup/delete",
|
||||||
"backup_id": "abc123",
|
"backup_id": "abc123",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
@@ -165,7 +165,7 @@ async def test_agent_delete_backup(
|
|||||||
|
|
||||||
await client.send_json_auto_id(
|
await client.send_json_auto_id(
|
||||||
{
|
{
|
||||||
"type": "backup/remove",
|
"type": "backup/delete",
|
||||||
"backup_id": backup_id,
|
"backup_id": backup_id,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user