Make sure we check access token expiration (#15207)

* Make sure we check access token expiration

* Use correct access token websocket
This commit is contained in:
Paulus Schoutsen 2018-06-29 00:02:33 -04:00 committed by GitHub
parent 2205090795
commit 39971ee919
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 74 additions and 11 deletions

View file

@ -320,6 +320,7 @@ class MockUser(auth.User):
def add_to_auth_manager(self, auth_mgr):
"""Test helper to add entry to hass."""
ensure_auth_manager_loaded(auth_mgr)
auth_mgr._store.users[self.id] = self
return self