From 2e25af3125544bb77720fcca270f61f01b6d87f8 Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Sun, 30 Jul 2023 12:32:59 -0700 Subject: [PATCH] Do not intercept effect and flash calls (#685) * Do not intercept effect and flash calls * log * Do not intercept flash --- custom_components/adaptive_lighting/switch.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/custom_components/adaptive_lighting/switch.py b/custom_components/adaptive_lighting/switch.py index 181bd20d..58638c3d 100644 --- a/custom_components/adaptive_lighting/switch.py +++ b/custom_components/adaptive_lighting/switch.py @@ -2003,6 +2003,9 @@ class AdaptiveLightingManager: if is_our_context(call.context): return + if ATTR_EFFECT in data[CONF_PARAMS] or ATTR_FLASH in data[CONF_PARAMS]: + return + entity_ids = self._get_entity_list(data) # For simplicity, only service calls affecting a single entity are currently handled.