mirror of
https://github.com/home-assistant/core.git
synced 2026-09-28 02:18:10 -04:00
Convert test fixtures to async (#142052)
This commit is contained in:
@@ -36,11 +36,9 @@ from tests.typing import ClientSessionGenerator
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def auth_active(hass: HomeAssistant) -> None:
|
||||
async def auth_active(hass: HomeAssistant) -> None:
|
||||
"""Ensure auth is always active."""
|
||||
hass.loop.run_until_complete(
|
||||
register_auth_provider(hass, {"type": "homeassistant"})
|
||||
)
|
||||
await register_auth_provider(hass, {"type": "homeassistant"})
|
||||
|
||||
|
||||
@pytest.fixture(name="rpi")
|
||||
|
||||
Reference in New Issue
Block a user