pull/24636/head
Penny Wood 2019-06-19 22:25:15 +08:00 committed by Paulus Schoutsen
parent b0c68e0ea7
commit 4d6c07f18a
1 changed files with 1 additions and 0 deletions

View File

@ -170,6 +170,7 @@ class Sun(Entity):
utc_point_in_time, 'dusk', PHASE_ASTRONOMICAL_TWILIGHT)
self.next_midnight = self._check_event(
utc_point_in_time, 'solar_midnight', None)
self.location.solar_depression = 'civil'
# if the event was solar midday or midnight, phase will now
# be None. Solar noon doesn't always happen when the sun is