Always set hass_user (#18844)
This commit is contained in:
1 parent
ada148eeae
commit
80f2c2b124
3 files changed
+79
-10
No files matched your search
@@ -88,6 +88,12 @@ def hass_access_token(hass, hass_admin_user):
|
||||
yield hass.auth.async_create_access_token(refresh_token)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def hass_owner_user(hass, local_auth):
|
||||
"""Return a Home Assistant admin user."""
|
||||
return MockUser(is_owner=True).add_to_hass(hass)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def hass_admin_user(hass, local_auth):
|
||||
"""Return a Home Assistant admin user."""
|
||||
|
||||
Reference in new issue
Block a user