mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 01:07:10 +00:00
Fix calc next (#21630)
This commit is contained in:
parent
932080656d
commit
cca8d4c951
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user