Rename backup/upload websocket type to backup/agents/upload

This commit is contained in:
Martin Hjelmare 2024-11-14 08:48:29 +01:00
parent f99b319048
commit d2c934923e
2 changed files with 3 additions and 3 deletions

View file

@ -173,7 +173,7 @@ async def handle_backup_end(
@websocket_api.ws_require_user(only_supervisor=True)
@websocket_api.websocket_command(
{
vol.Required("type"): "backup/upload",
vol.Required("type"): "backup/agents/upload",
vol.Required("data"): {
vol.Required("slug"): str,
},

View file

@ -276,7 +276,7 @@ async def test_backup_upload(
):
await client.send_json_auto_id(
{
"type": "backup/upload",
"type": "backup/agents/upload",
"data": {
"slug": "abc123",
},
@ -341,7 +341,7 @@ async def test_backup_upload_exception(
):
await client.send_json_auto_id(
{
"type": "backup/upload",
"type": "backup/agents/upload",
"data": {
"slug": "abc123",
},