From 60b1be43db741350c1e8d14b24901bfaf5b321fc Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Tue, 8 Nov 2022 09:11:32 -0800 Subject: [PATCH] Run pre-commit filters --- custom_components/adaptive_lighting/switch.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/custom_components/adaptive_lighting/switch.py b/custom_components/adaptive_lighting/switch.py index 435f49e5..ff100a44 100755 --- a/custom_components/adaptive_lighting/switch.py +++ b/custom_components/adaptive_lighting/switch.py @@ -106,8 +106,10 @@ from .const import ( 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, @@ -118,10 +120,8 @@ from .const import ( 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, @@ -1152,8 +1152,10 @@ class SunLightSettings: 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