mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 03:06:41 +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 = {
|
target = {
|
||||||
entity_id: targetEntities,
|
...(targetEntities.length ? { entity_id: targetEntities } : {}),
|
||||||
device_id: targetDevices,
|
...(targetDevices.length ? { device_id: targetDevices } : {}),
|
||||||
area_id: targetAreas,
|
...(targetAreas.length ? { area_id: targetAreas } : {}),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user