mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Don't leave empty arrays in the service control target (#18986)
This commit is contained in:
parent
a52ba5fbd1
commit
7167b66719
@ -597,9 +597,9 @@ export class HaServiceControl extends LitElement {
|
||||
);
|
||||
}
|
||||
target = {
|
||||
entity_id: targetEntities,
|
||||
device_id: targetDevices,
|
||||
area_id: targetAreas,
|
||||
...(targetEntities.length ? { entity_id: targetEntities } : {}),
|
||||
...(targetDevices.length ? { device_id: targetDevices } : {}),
|
||||
...(targetAreas.length ? { area_id: targetAreas } : {}),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user