mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Add missing argument type hints to recorder tests (#119672)
This commit is contained in:
parent
003f216820
commit
83b97d3218
@ -806,7 +806,9 @@ async def test_get_significant_states_only_minimal_response(
|
||||
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.
|
||||
|
||||
We inject a bunch of state updates from media player, zone and
|
||||
|
@ -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.
|
||||
|
||||
We inject a bunch of state updates from media player, zone and
|
||||
|
@ -808,7 +808,9 @@ async def test_get_significant_states_only_minimal_response(
|
||||
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.
|
||||
|
||||
We inject a bunch of state updates from media player, zone and
|
||||
|
Loading…
x
Reference in New Issue
Block a user