Add missing argument type hints to recorder tests (#119672)

This commit is contained in:
epenet 2024-06-14 09:25:26 +02:00 committed by GitHub
parent 003f216820
commit 83b97d3218
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 3 deletions

View File

@ -806,7 +806,9 @@ async def test_get_significant_states_only_minimal_response(
assert len(hist["sensor.test"]) == 3 assert len(hist["sensor.test"]) == 3
def record_states(hass) -> tuple[datetime, datetime, dict[str, list[State]]]: def record_states(
hass: HomeAssistant,
) -> tuple[datetime, datetime, dict[str, list[State]]]:
"""Record some test states. """Record some test states.
We inject a bunch of state updates from media player, zone and We inject a bunch of state updates from media player, zone and

View File

@ -568,7 +568,9 @@ async def test_get_significant_states_only(
) )
def record_states(hass) -> tuple[datetime, datetime, dict[str, list[State]]]: def record_states(
hass: HomeAssistant,
) -> tuple[datetime, datetime, dict[str, list[State]]]:
"""Record some test states. """Record some test states.
We inject a bunch of state updates from media player, zone and We inject a bunch of state updates from media player, zone and

View File

@ -808,7 +808,9 @@ async def test_get_significant_states_only_minimal_response(
assert len(hist["sensor.test"]) == 3 assert len(hist["sensor.test"]) == 3
def record_states(hass) -> tuple[datetime, datetime, dict[str, list[State]]]: def record_states(
hass: HomeAssistant,
) -> tuple[datetime, datetime, dict[str, list[State]]]:
"""Record some test states. """Record some test states.
We inject a bunch of state updates from media player, zone and We inject a bunch of state updates from media player, zone and