Fix typos in hassio (#142529)

pull/142535/head
Erik Montnemery 2025-04-08 15:05:19 +02:00 committed by GitHub
parent 67e7554702
commit 0ed7348d2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 4 deletions

View File

@ -182,6 +182,6 @@ async def websocket_update_addon(
async def websocket_update_core(
hass: HomeAssistant, connection: ActiveConnection, msg: dict[str, Any]
) -> None:
"""Websocket handler to update an addon."""
"""Websocket handler to update Home Assistant Core."""
await update_core(hass, None, msg["backup"])
connection.send_result(msg[WS_ID])

View File

@ -849,9 +849,7 @@ async def test_update_core_with_backup_and_error(
side_effect=BackupManagerError,
),
):
await client.send_json_auto_id(
{"type": "hassio/update/addon", "addon": "test", "backup": True}
)
await client.send_json_auto_id({"type": "hassio/update/core", "backup": True})
result = await client.receive_json()
assert not result["success"]
assert result["error"] == {