Improve type hints in flux tests (#120733)
This commit is contained in:
parent
540da3cac6
commit
6d93695e2c
1 changed files with 1 additions and 3 deletions
|
@ -29,7 +29,7 @@ from tests.components.light.common import MockLight
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(autouse=True)
|
@pytest.fixture(autouse=True)
|
||||||
async def set_utc(hass):
|
async def set_utc(hass: HomeAssistant) -> None:
|
||||||
"""Set timezone to UTC."""
|
"""Set timezone to UTC."""
|
||||||
await hass.config.async_set_time_zone("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]
|
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(
|
async def test_flux_after_sunset_before_midnight_stop_next_day(
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
x,
|
|
||||||
mock_light_entities: list[MockLight],
|
mock_light_entities: list[MockLight],
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Test the flux switch after sunset and before stop.
|
"""Test the flux switch after sunset and before stop.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue