Skip to content

Commit

Permalink
Fix calc next (#21630)
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob authored and bachya committed Mar 4, 2019
1 parent f5ed643 commit 48a2e50
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions homeassistant/helpers/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 48a2e50

Please sign in to comment.