From 8bab2a9bea7af06ea812268ddac60cfd7c093610 Mon Sep 17 00:00:00 2001
From: Erik Montnemery <erik@montnemery.com>
Date: Fri, 2 Sep 2022 08:39:27 +0200
Subject: [PATCH] Tweak schedule test (#77696)

---
 tests/components/schedule/test_init.py | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/tests/components/schedule/test_init.py b/tests/components/schedule/test_init.py
index 0eda21f5ba0..92a82b974df 100644
--- a/tests/components/schedule/test_init.py
+++ b/tests/components/schedule/test_init.py
@@ -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"},
                 }
             }
         },
-- 
GitLab