Fix broken test

pull/3103/head
Paulus Schoutsen 2016-09-01 14:38:06 +01:00
parent 0bcfb65a30
commit 60f540315a
1 changed files with 2 additions and 1 deletions

View File

@ -107,7 +107,8 @@ def track_sunrise(hass, action, offset=None):
def sunrise_automation_listener(now):
"""Called when it's time for action."""
nonlocal remove
track_point_in_utc_time(hass, sunrise_automation_listener, next_rise())
remove = track_point_in_utc_time(hass, sunrise_automation_listener,
next_rise())
action()
remove = track_point_in_utc_time(hass, sunrise_automation_listener,