From 48a2e50f849008c424811833c6adbddabdb9765f Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sun, 3 Mar 2019 20:36:13 -0800 Subject: [PATCH] Fix calc next (#21630) --- homeassistant/helpers/event.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/homeassistant/helpers/event.py b/homeassistant/helpers/event.py index b55c259f503850..5e262a47565c6c 100644 --- a/homeassistant/helpers/event.py +++ b/homeassistant/helpers/event.py @@ -370,9 +370,7 @@ def pattern_time_change_listener(event): last_now = now if next_time <= now: - if local: - now = dt_util.as_local(now) - hass.async_run_job(action, now) + hass.async_run_job(action, dt_util.as_local(now) if local else now) calculate_next(now + timedelta(seconds=1)) # We can't use async_track_point_in_utc_time here because it would