From ece676e3dc5f7ec8b910d55e221919d39dff8847 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Tue, 1 Aug 2023 09:41:34 +0200 Subject: [PATCH] Make required asterisk consistent (#17403) --- src/components/ha-selector/ha-selector-number.ts | 2 +- src/components/ha-selector/ha-selector-template.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/ha-selector/ha-selector-number.ts b/src/components/ha-selector/ha-selector-number.ts index fd66d3efe700..8c569e4d0740 100644 --- a/src/components/ha-selector/ha-selector-number.ts +++ b/src/components/ha-selector/ha-selector-number.ts @@ -34,7 +34,7 @@ export class HaNumberSelector extends LitElement { ${!isBox ? html` ${this.label - ? html`${this.label}${this.required ? " *" : ""}` + ? html`${this.label}${this.required ? "*" : ""}` : ""} ${this.label}${this.required ? " *" : ""}

` - : ""} + ${this.label ? html`

${this.label}${this.required ? "*" : ""}

` : ""}