Do not display no areas in entity pickers (#25317)

This commit is contained in:
Paul Bottein
2025-05-05 18:56:16 +02:00
committed by GitHub
parent fb3a59272d
commit 4ec5fbc9a4
3 changed files with 22 additions and 10 deletions

View File

@@ -162,10 +162,7 @@ export class HaEntityPicker extends LitElement {
slot="start"
></state-badge>
<span slot="headline">${primary}</span>
<span slot="supporting-text">
${secondary ||
this.hass.localize("ui.components.device-picker.no_area")}
</span>
<span slot="supporting-text">${secondary}</span>
${showClearIcon
? html`<ha-icon-button
class="clear"