From cca8d4c9516d879df1a1e9c76ba3f85e72951ebd 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 b55c259f503..5e262a47565 100644 --- a/homeassistant/helpers/event.py +++ b/homeassistant/helpers/event.py @@ -370,9 +370,7 @@ def async_track_utc_time_change(hass, action, 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