Improve Supervisor API handling (#89379)
This commit is contained in:
parent
7f8a9697f0
commit
b65180d20a
10 changed files with 620 additions and 212 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue