mirror of
https://github.com/home-assistant/core.git
synced 2025-12-25 05:26:47 +00:00
Always set hass_user (#18844)
This commit is contained in:
@@ -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