diff --git a/appdaemon/scheduler.py b/appdaemon/scheduler.py index 1dfd4e33d..e6e7ef22e 100644 --- a/appdaemon/scheduler.py +++ b/appdaemon/scheduler.py @@ -498,7 +498,7 @@ async def get_next_period( match start: case "immediate": return now - case "now", _: + case "now" | _: aware_next = await self.parse_datetime(start, aware=True, now=now) # Skip forward to the next period if start is in the past # This makes the result in the first