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)