From 60c8c6df722ed19d0f50b9a684a3366680f35264 Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Sat, 29 Jul 2023 12:18:10 -0700 Subject: [PATCH] add comment --- custom_components/adaptive_lighting/switch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_components/adaptive_lighting/switch.py b/custom_components/adaptive_lighting/switch.py index 15e1e288..0f857a5e 100644 --- a/custom_components/adaptive_lighting/switch.py +++ b/custom_components/adaptive_lighting/switch.py @@ -2019,11 +2019,12 @@ class AdaptiveLightingManager: # Needs to make the original call but without adaptation skipped.append(entity_id) - has_intercepted = False transition = data[CONF_PARAMS].get( ATTR_TRANSITION, adaptive_switch.initial_transition, ) + + has_intercepted = False # Can only intercept a turn_on call once for adaptive_switch, entity_ids in switches.items(): if not adaptive_switch.is_on: skipped.extend(entity_ids)