Route themes and translations over websocket (#14828)
This commit is contained in:
parent
a6880c452f
commit
fa2e6ada26
4 changed files with 175 additions and 88 deletions
|
@ -311,8 +311,9 @@ def test_unknown_command(websocket_client):
|
|||
'type': 'unknown_command',
|
||||
})
|
||||
|
||||
msg = yield from websocket_client.receive()
|
||||
assert msg.type == WSMsgType.close
|
||||
msg = yield from websocket_client.receive_json()
|
||||
assert not msg['success']
|
||||
assert msg['error']['code'] == wapi.ERR_UNKNOWN_COMMAND
|
||||
|
||||
|
||||
async def test_auth_with_token(hass, aiohttp_client, hass_access_token):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue