mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27: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
|
last_now = now
|
||||||
|
|
||||||
if next_time <= now:
|
if next_time <= now:
|
||||||
if local:
|
hass.async_run_job(action, dt_util.as_local(now) if local else now)
|
||||||
now = dt_util.as_local(now)
|
|
||||||
hass.async_run_job(action, now)
|
|
||||||
calculate_next(now + timedelta(seconds=1))
|
calculate_next(now + timedelta(seconds=1))
|
||||||
|
|
||||||
# We can't use async_track_point_in_utc_time here because it would
|
# We can't use async_track_point_in_utc_time here because it would
|
||||||
|
Loading…
x
Reference in New Issue
Block a user