Skip to content

Commit

Permalink
Run pre-commit filters
Browse files Browse the repository at this point in the history
  • Loading branch information
basnijholt committed Nov 8, 2022
1 parent d001074 commit 60b1be4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions custom_components/adaptive_lighting/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,10 @@
CONF_MANUAL_CONTROL,
CONF_MAX_BRIGHTNESS,
CONF_MAX_COLOR_TEMP,
CONF_MAX_SUNRISE_TIME,
CONF_MIN_BRIGHTNESS,
CONF_MIN_COLOR_TEMP,
CONF_MIN_SUNSET_TIME,
CONF_ONLY_ONCE,
CONF_PREFER_RGB_COLOR,
CONF_SEPARATE_TURN_ON_COMMANDS,
Expand All @@ -118,10 +120,8 @@
CONF_SLEEP_TRANSITION,
CONF_SUNRISE_OFFSET,
CONF_SUNRISE_TIME,
CONF_MAX_SUNRISE_TIME,
CONF_SUNSET_OFFSET,
CONF_SUNSET_TIME,
CONF_MIN_SUNSET_TIME,
CONF_TAKE_OVER_CONTROL,
CONF_TRANSITION,
CONF_TURN_ON_LIGHTS,
Expand Down Expand Up @@ -1152,8 +1152,10 @@ def calculate_noon_and_midnight(
sunset = min_sunset

if (
self.sunrise_time is None and self.sunset_time is None and
self.max_sunrise_time is None and self.min_sunset_time is None
self.sunrise_time is None
and self.sunset_time is None
and self.max_sunrise_time is None
and self.min_sunset_time is None
):
try:
# Astral v1
Expand Down

0 comments on commit 60b1be4

Please sign in to comment.