Fix target-picker floor entities count (#27577)

Fix floor entities count
This commit is contained in:
Wendelin
2025-10-20 13:05:37 +02:00
committed by GitHub
parent fa4dd1c5ea
commit 2a49b5e15a

View File

@@ -457,6 +457,9 @@ export class HaTargetPickerItemRow extends LitElement {
} }
if ( if (
(this.type === "area" && entity.area_id === this.itemId) || (this.type === "area" && entity.area_id === this.itemId) ||
(this.type === "floor" &&
entity.area_id &&
entries.referenced_areas.includes(entity.area_id)) ||
(this.type === "label" && entity.labels.includes(this.itemId)) || (this.type === "label" && entity.labels.includes(this.itemId)) ||
entries.referenced_devices.includes(entity.device_id || "") entries.referenced_devices.includes(entity.device_id || "")
) { ) {