mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-16 08:44:03 +02:00
fixed truthiness bug in _split_service_call_data (adapted from #1460)
Signed-off-by: jaynis <kranz.jannis@googlemail.com>
This commit is contained in:
parent
25df0295fb
commit
7acef8d7b9
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue