Fix calc next (#21630)
This commit is contained in:
1 parent
932080656d
commit
cca8d4c951
1 file changed
+1
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user