Improve type hints in flux tests (#120733)

This commit is contained in:
epenet 2024-06-28 11:20:17 +02:00 committed by GitHub
parent 540da3cac6
commit 6d93695e2c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,7 +29,7 @@ from tests.components.light.common import MockLight
@pytest.fixture(autouse=True)
async def set_utc(hass):
async def set_utc(hass: HomeAssistant) -> None:
"""Set timezone to UTC."""
await hass.config.async_set_time_zone("UTC")
@ -723,10 +723,8 @@ async def test_flux_after_sunrise_before_sunset_stop_next_day(
assert call.data[light.ATTR_XY_COLOR] == [0.439, 0.37]
@pytest.mark.parametrize("x", [0, 1])
async def test_flux_after_sunset_before_midnight_stop_next_day(
hass: HomeAssistant,
x,
mock_light_entities: list[MockLight],
) -> None:
"""Test the flux switch after sunset and before stop.