Break up websocket component (#17003)

* Break up websocket component

* Lint
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2018-10-01 11:21:00 +02:00
1 parent 9edf1e5151
commit 22a80cf733
21 files changed
+1041 -1003

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@ import base64
from unittest.mock import patch
from homeassistant.setup import async_setup_component
from homeassistant.components import websocket_api
from homeassistant.components.websocket_api.const import TYPE_RESULT
from tests.common import mock_coro
@@ -30,7 +30,7 @@ async def test_get_panels(hass, hass_ws_client):
msg = await client.receive_json()
assert msg['id'] == 5
assert msg['type'] == websocket_api.TYPE_RESULT
assert msg['type'] == TYPE_RESULT
assert msg['success']
assert msg['result']['content_type'] == 'image/jpeg'
assert msg['result']['content'] == \