mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Fix broken test
This commit is contained in:
parent
0bcfb65a30
commit
60f540315a
@ -107,7 +107,8 @@ def track_sunrise(hass, action, offset=None):
|
|||||||
def sunrise_automation_listener(now):
|
def sunrise_automation_listener(now):
|
||||||
"""Called when it's time for action."""
|
"""Called when it's time for action."""
|
||||||
nonlocal remove
|
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()
|
action()
|
||||||
|
|
||||||
remove = track_point_in_utc_time(hass, sunrise_automation_listener,
|
remove = track_point_in_utc_time(hass, sunrise_automation_listener,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user