Route themes and translations over websocket (#14828)

This commit is contained in:
Paulus Schoutsen 2018-06-06 01:12:43 -07:00 committed by Pascal Vizeli
parent a6880c452f
commit fa2e6ada26
4 changed files with 175 additions and 88 deletions

View file

@ -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):