Improve hass type hints for autouse fixtures in tests (#121311)

This commit is contained in:
epenet 2024-07-05 16:49:22 +02:00 committed by GitHub
parent 9383920b1a
commit 4b4b17e774
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 16 additions and 15 deletions

View file

@ -17,7 +17,7 @@ def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None:
@pytest.fixture(autouse=True)
def setup_comp(hass):
def setup_comp(hass: HomeAssistant) -> None:
"""Initialize components."""
mock_component(hass, "group")
hass.loop.run_until_complete(