mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix typos in hassio (#142529)
This commit is contained in:
parent
67e7554702
commit
0ed7348d2d
@ -182,6 +182,6 @@ async def websocket_update_addon(
|
|||||||
async def websocket_update_core(
|
async def websocket_update_core(
|
||||||
hass: HomeAssistant, connection: ActiveConnection, msg: dict[str, Any]
|
hass: HomeAssistant, connection: ActiveConnection, msg: dict[str, Any]
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Websocket handler to update an addon."""
|
"""Websocket handler to update Home Assistant Core."""
|
||||||
await update_core(hass, None, msg["backup"])
|
await update_core(hass, None, msg["backup"])
|
||||||
connection.send_result(msg[WS_ID])
|
connection.send_result(msg[WS_ID])
|
||||||
|
@ -849,9 +849,7 @@ async def test_update_core_with_backup_and_error(
|
|||||||
side_effect=BackupManagerError,
|
side_effect=BackupManagerError,
|
||||||
),
|
),
|
||||||
):
|
):
|
||||||
await client.send_json_auto_id(
|
await client.send_json_auto_id({"type": "hassio/update/core", "backup": True})
|
||||||
{"type": "hassio/update/addon", "addon": "test", "backup": True}
|
|
||||||
)
|
|
||||||
result = await client.receive_json()
|
result = await client.receive_json()
|
||||||
assert not result["success"]
|
assert not result["success"]
|
||||||
assert result["error"] == {
|
assert result["error"] == {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user