From b9f28dd0ab87702e9fe25b9b8232874297ba2f4a Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Mon, 29 Aug 2022 09:30:20 -0700 Subject: [PATCH] Fix linting issues --- custom_components/adaptive_lighting/switch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/adaptive_lighting/switch.py b/custom_components/adaptive_lighting/switch.py index cf4dcddf..73f6ed31 100755 --- a/custom_components/adaptive_lighting/switch.py +++ b/custom_components/adaptive_lighting/switch.py @@ -96,6 +96,7 @@ from .const import ( ATTR_ADAPT_BRIGHTNESS, ATTR_ADAPT_COLOR, ATTR_TURN_ON_OFF_LISTENER, + CONF_ADAPT_DELAY, CONF_DETECT_NON_HA_CHANGES, CONF_INITIAL_TRANSITION, CONF_INTERVAL, @@ -127,7 +128,6 @@ from .const import ( SUN_EVENT_MIDNIGHT, SUN_EVENT_NOON, TURNING_OFF_DELAY, - CONF_ADAPT_DELAY, VALIDATION_TUPLES, replace_none_str, ) @@ -963,7 +963,7 @@ class AdaptiveSwitch(SwitchEntity, RestoreEntity): "%s: Cancelling adjusting lights for %s", self._name, entity_id ) return - + if self._adapt_delay > 0: _LOGGER.debug( "%s: sleep started for '%s' with context.id='%s'",