Skip to content
Snippets Groups Projects
Unverified Commit ee38203e authored by J. Nick Koston's avatar J. Nick Koston Committed by GitHub
Browse files

Add missing callback decorator to sun (#67840)

parent 36049ac5
No related branches found
No related tags found
No related merge requests found
......@@ -101,6 +101,7 @@ class Sun(Entity):
self.rising = self.phase = None
self._next_change = None
@callback
def update_location(_event):
location, elevation = get_astral_location(self.hass)
if location == self.location:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment