Fix typos in hassio (#142529)
parent
67e7554702
commit
0ed7348d2d
|
@ -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])
|
||||
|
|
|
@ -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"] == {
|
||||
|
|
Loading…
Reference in New Issue