Improve type hints in config tests (#119055)

This commit is contained in:
epenet 2024-06-07 11:40:03 +02:00 committed by GitHub
parent 1c8a9cc3b8
commit 907297cd1a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View File

@ -7,11 +7,13 @@ from homeassistant.components.config import auth as auth_config
from homeassistant.core import HomeAssistant
from tests.common import CLIENT_ID, MockGroup, MockUser
from tests.typing import WebSocketGenerator
from tests.typing import ClientSessionGenerator, WebSocketGenerator
@pytest.fixture(autouse=True)
async def setup_config(hass, aiohttp_client):
async def setup_config(
hass: HomeAssistant, aiohttp_client: ClientSessionGenerator
) -> None:
"""Fixture that sets up the auth provider homeassistant module."""
auth_config.async_setup(hass)

View File

@ -24,7 +24,7 @@ def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None:
@pytest.fixture(autouse=True)
async def setup_script(hass, script_config, stub_blueprint_populate):
async def setup_script(hass: HomeAssistant, script_config: dict[str, Any]) -> None:
"""Set up script integration."""
assert await async_setup_component(hass, "script", {"script": script_config})