mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-25 13:57:21 +00:00
Fix missing areas in area picker (#8594)
This commit is contained in:
parent
41852460e1
commit
ca3cac4ed3
@ -140,7 +140,7 @@ export class HaAreaPicker extends SubscribeMixin(LitElement) {
|
|||||||
this._devices = devices;
|
this._devices = devices;
|
||||||
}),
|
}),
|
||||||
subscribeEntityRegistry(this.hass.connection!, (entities) => {
|
subscribeEntityRegistry(this.hass.connection!, (entities) => {
|
||||||
this._entities = entities.filter((entity) => entity.area_id);
|
this._entities = entities;
|
||||||
}),
|
}),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
@ -193,13 +193,13 @@ export class HaAreaPicker extends SubscribeMixin(LitElement) {
|
|||||||
deviceEntityLookup[entity.device_id].push(entity);
|
deviceEntityLookup[entity.device_id].push(entity);
|
||||||
}
|
}
|
||||||
inputDevices = devices;
|
inputDevices = devices;
|
||||||
inputEntities = entities;
|
inputEntities = entities.filter((entity) => entity.area_id);
|
||||||
} else {
|
} else {
|
||||||
if (deviceFilter) {
|
if (deviceFilter) {
|
||||||
inputDevices = devices;
|
inputDevices = devices;
|
||||||
}
|
}
|
||||||
if (entityFilter) {
|
if (entityFilter) {
|
||||||
inputEntities = entities;
|
inputEntities = entities.filter((entity) => entity.area_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user