mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Fix split area into separate devices and entities (#17017)
This commit is contained in:
parent
3111c29049
commit
d63d3a681c
@ -249,12 +249,16 @@ export class HaServiceControl extends LitElement {
|
|||||||
) {
|
) {
|
||||||
const targetSelector = target ? { target } : { target: {} };
|
const targetSelector = target ? { target } : { target: {} };
|
||||||
const targetEntities =
|
const targetEntities =
|
||||||
ensureArray(value?.target?.entity_id || value?.data?.entity_id) || [];
|
ensureArray(
|
||||||
|
value?.target?.entity_id || value?.data?.entity_id
|
||||||
|
)?.slice() || [];
|
||||||
const targetDevices =
|
const targetDevices =
|
||||||
ensureArray(value?.target?.device_id || value?.data?.device_id) || [];
|
ensureArray(
|
||||||
|
value?.target?.device_id || value?.data?.device_id
|
||||||
|
)?.slice() || [];
|
||||||
const targetAreas = ensureArray(
|
const targetAreas = ensureArray(
|
||||||
value?.target?.area_id || value?.data?.area_id
|
value?.target?.area_id || value?.data?.area_id
|
||||||
);
|
)?.slice();
|
||||||
if (targetAreas) {
|
if (targetAreas) {
|
||||||
targetAreas.forEach((areaId) => {
|
targetAreas.forEach((areaId) => {
|
||||||
const expanded = expandAreaTarget(
|
const expanded = expandAreaTarget(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user