Add missing callback decorator to sun (#67840)

pull/67851/head
J. Nick Koston 2022-03-08 10:16:41 +01:00 committed by GitHub
parent 36049ac514
commit ee38203e1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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: