From 346b821f1e10314dc199cb1804eafde15ebcab5f Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Mon, 31 Jul 2023 18:06:28 -0700 Subject: [PATCH] Fix comment --- custom_components/adaptive_lighting/switch.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/custom_components/adaptive_lighting/switch.py b/custom_components/adaptive_lighting/switch.py index c24ba059..abb0d904 100644 --- a/custom_components/adaptive_lighting/switch.py +++ b/custom_components/adaptive_lighting/switch.py @@ -1276,6 +1276,8 @@ class AdaptiveSwitch(SwitchEntity, RestoreEntity): context.parent_id, ): # Skip if adaptation was already executed by the service call interceptor + # The context.parent_id is the context.id of the service call that was intercepted + # and context.id here is from the resulting "light_event" event. _LOGGER.debug( "%s: Skipping reactive adaptation of light %s with context.id=%s and context.parent_id=%s", self._name,