Enforce permissions for Websocket API (#18719)

* Handle unauth exceptions in websocket

* Enforce permissions in websocket API
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2018-11-27 10:12:31 +01:00
1 parent 7248c9cb0e
commit 9d7b1fc3a7
6 files changed
+81 -17

No files matched your search

+3 -2
View File
@@ -9,9 +9,10 @@ from . import API_PASSWORD
@pytest.fixture
def websocket_client(hass, hass_ws_client):
def websocket_client(hass, hass_ws_client, hass_access_token):
"""Create a websocket client."""
return hass.loop.run_until_complete(hass_ws_client(hass))
return hass.loop.run_until_complete(
hass_ws_client(hass, hass_access_token))
@pytest.fixture