From 7acef8d7b973da8ea75d5c6748b6c331c7298a3d Mon Sep 17 00:00:00 2001 From: jaynis Date: Fri, 24 Apr 2026 18:06:26 +0200 Subject: [PATCH] fixed truthiness bug in _split_service_call_data (adapted from #1460) Signed-off-by: jaynis --- custom_components/adaptive_lighting/adaptation_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/adaptive_lighting/adaptation_utils.py b/custom_components/adaptive_lighting/adaptation_utils.py index 26acd92b..6eb1b118 100644 --- a/custom_components/adaptive_lighting/adaptation_utils.py +++ b/custom_components/adaptive_lighting/adaptation_utils.py @@ -98,7 +98,7 @@ def _split_service_call_data(service_data: ServiceData) -> list[ServiceData]: split_data = { attribute: service_data[attribute] for attribute in attributes - if service_data.get(attribute) + if service_data.get(attribute) is not None } if split_data: service_datas.append(common_data | split_data)