Route themes and translations over websocket (#14828)

This commit is contained in:
Paulus Schoutsen authored and Pascal Vizeli committed 2018-06-06 10:12:43 +02:00
1 parent a6880c452f
commit fa2e6ada26
4 files changed
+175 -88

No files matched your search

+3 -2
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):