mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
Tweak schedule test (#77696)
This commit is contained in:
parent
32e4a2515e
commit
8bab2a9bea
@ -176,15 +176,10 @@ async def test_invalid_schedules(
|
||||
assert error in caplog.text
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"schedule",
|
||||
({CONF_FROM: "07:00:00", CONF_TO: "11:00:00"},),
|
||||
)
|
||||
async def test_events_one_day(
|
||||
hass: HomeAssistant,
|
||||
schedule_setup: Callable[..., Coroutine[Any, Any, bool]],
|
||||
caplog: pytest.LogCaptureFixture,
|
||||
schedule: list[dict[str, str]],
|
||||
freezer,
|
||||
) -> None:
|
||||
"""Test events only during one day of the week."""
|
||||
@ -196,7 +191,7 @@ async def test_events_one_day(
|
||||
"from_yaml": {
|
||||
CONF_NAME: "from yaml",
|
||||
CONF_ICON: "mdi:party-popper",
|
||||
CONF_SUNDAY: schedule,
|
||||
CONF_SUNDAY: {CONF_FROM: "07:00:00", CONF_TO: "11:00:00"},
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user