From c0509292157810f245ec5e233444f475fc8404db Mon Sep 17 00:00:00 2001 From: abmantis Date: Wed, 8 Oct 2025 23:28:21 +0100 Subject: [PATCH] Always display device name in entity picker --- src/components/entity/ha-entity-picker.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/entity/ha-entity-picker.ts b/src/components/entity/ha-entity-picker.ts index bf12d37c6f49..2f76a042be4b 100644 --- a/src/components/entity/ha-entity-picker.ts +++ b/src/components/entity/ha-entity-picker.ts @@ -157,7 +157,7 @@ export class HaEntityPicker extends LitElement { const isRTL = computeRTL(this.hass); const primary = entityName || deviceName || entityId; - const secondary = [areaName, entityName ? deviceName : undefined] + const secondary = [areaName, deviceName] .filter(Boolean) .join(isRTL ? " ◂ " : " ▸ "); @@ -325,7 +325,7 @@ export class HaEntityPicker extends LitElement { const domainName = domainToName(hass.localize, computeDomain(entityId)); const primary = entityName || deviceName || entityId; - const secondary = [areaName, entityName ? deviceName : undefined] + const secondary = [areaName, deviceName] .filter(Boolean) .join(isRTL ? " ◂ " : " ▸ "); const a11yLabel = [deviceName, entityName].filter(Boolean).join(" - ");