diff --git a/src/components/ha-base-time-input.ts b/src/components/ha-base-time-input.ts index 7c3f59a629..9b35e60ca2 100644 --- a/src/components/ha-base-time-input.ts +++ b/src/components/ha-base-time-input.ts @@ -131,7 +131,7 @@ export class HaBaseTimeInput extends LitElement { protected render(): TemplateResult { return html` ${this.label - ? html`` + ? html`` : ""}
${this.enableDay diff --git a/src/components/ha-labeled-slider.js b/src/components/ha-labeled-slider.js index 00d1b1848f..0cb42de57d 100644 --- a/src/components/ha-labeled-slider.js +++ b/src/components/ha-labeled-slider.js @@ -53,7 +53,7 @@ class HaLabeledSlider extends PolymerElement { } _getTitle() { - return `${this.caption}${this.required ? "*" : ""}`; + return `${this.caption}${this.caption && this.required ? " *" : ""}`; } static get properties() { diff --git a/src/components/ha-selector/ha-selector-color-temp.ts b/src/components/ha-selector/ha-selector-color-temp.ts index c3cbb5ffe8..e94519df24 100644 --- a/src/components/ha-selector/ha-selector-color-temp.ts +++ b/src/components/ha-selector/ha-selector-color-temp.ts @@ -26,7 +26,7 @@ export class HaColorTempSelector extends LitElement { ${!isBox ? html`${this.label}${this.required ? "*" : ""}

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

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

` + : ""}