Convert test fixtures to async (#142052)

This commit is contained in:
Erik Montnemery
2025-04-02 14:05:07 +02:00
committed by GitHub
parent 93162f6b65
commit dfd86d56ec
24 changed files with 157 additions and 193 deletions
+2 -4
View File
@@ -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")