mirror of
https://github.com/home-assistant/core.git
synced 2025-08-14 01:55:18 +02:00
Add missing callback decorator to sun (#67840)
This commit is contained in:
committed by
Paulus Schoutsen
parent
c22af2c82a
commit
cad397d6a7
@@ -101,6 +101,7 @@ class Sun(Entity):
|
|||||||
self.rising = self.phase = None
|
self.rising = self.phase = None
|
||||||
self._next_change = None
|
self._next_change = None
|
||||||
|
|
||||||
|
@callback
|
||||||
def update_location(_event):
|
def update_location(_event):
|
||||||
location, elevation = get_astral_location(self.hass)
|
location, elevation = get_astral_location(self.hass)
|
||||||
if location == self.location:
|
if location == self.location:
|
||||||
|
Reference in New Issue
Block a user