Improve Supervisor API handling (#89379)

This commit is contained in:
Franck Nijhof
2023-03-08 15:21:11 +01:00
committed by GitHub
parent 9381865f1c
commit feb3f543be
10 changed files with 620 additions and 212 deletions

View File

@@ -153,6 +153,11 @@ async def test_websocket_supervisor_api(
msg = await websocket_client.receive_json()
assert msg["result"]["version_latest"] == "1.0.0"
assert aioclient_mock.mock_calls[-1][3] == {
"X-Hass-Source": "core.websocket_api",
"Authorization": "Bearer 123456",
}
async def test_websocket_supervisor_api_error(
hassio_env,