mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-15 00:04:05 +02:00
parent
69355b8c3a
commit
ef1546b6b9
2 changed files with 4 additions and 0 deletions
|
|
@ -377,10 +377,12 @@ EXTRA_VALIDATION = {
|
|||
CONF_INTERVAL: (cv.time_period, timedelta_as_int),
|
||||
CONF_SUNRISE_OFFSET: (cv.time_period, timedelta_as_int),
|
||||
CONF_SUNRISE_TIME: (cv.time, str),
|
||||
CONF_MIN_SUNRISE_TIME: (cv.time, str),
|
||||
CONF_MAX_SUNRISE_TIME: (cv.time, str),
|
||||
CONF_SUNSET_OFFSET: (cv.time_period, timedelta_as_int),
|
||||
CONF_SUNSET_TIME: (cv.time, str),
|
||||
CONF_MIN_SUNSET_TIME: (cv.time, str),
|
||||
CONF_MAX_SUNSET_TIME: (cv.time, str),
|
||||
CONF_BRIGHTNESS_MODE_TIME_LIGHT: (cv.time_period, timedelta_as_int),
|
||||
CONF_BRIGHTNESS_MODE_TIME_DARK: (cv.time_period, timedelta_as_int),
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1689,8 +1689,10 @@ class SunLightSettings:
|
|||
if (
|
||||
self.sunrise_time is None
|
||||
and self.sunset_time is None
|
||||
and self.min_sunrise_time is None
|
||||
and self.max_sunrise_time is None
|
||||
and self.min_sunset_time is None
|
||||
and self.max_sunset_time is None
|
||||
):
|
||||
solar_noon = location.noon(date, local=False)
|
||||
solar_midnight = location.midnight(date, local=False)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue