From 01f692f05c85f450d4a6cb137b77fb19fc27502b Mon Sep 17 00:00:00 2001 From: karwosts <32912880+karwosts@users.noreply.github.com> Date: Fri, 23 Aug 2024 13:04:09 -0700 Subject: [PATCH] Render the label on the target selector (#21769) * Render the label on the target selector * use label --- .../ha-selector/ha-selector-target.ts | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/components/ha-selector/ha-selector-target.ts b/src/components/ha-selector/ha-selector-target.ts index aab5e8662a..9faeaa21b0 100644 --- a/src/components/ha-selector/ha-selector-target.ts +++ b/src/components/ha-selector/ha-selector-target.ts @@ -81,15 +81,16 @@ export class HaTargetSelector extends LitElement { return nothing; } - return html``; + return html` ${this.label ? html`` : nothing} + `; } private _filterEntities = (entity: HassEntity): boolean => {