From e7c47ef65c5ada5022594f47cd7a3a0275c6ded1 Mon Sep 17 00:00:00 2001 From: karwosts <32912880+karwosts@users.noreply.github.com> Date: Fri, 30 Jun 2023 08:06:46 -0700 Subject: [PATCH] Name field in helper forms should not init in the error state (#17111) --- src/panels/config/helpers/forms/ha-counter-form.ts | 6 +++--- src/panels/config/helpers/forms/ha-input_boolean-form.ts | 6 +++--- src/panels/config/helpers/forms/ha-input_button-form.ts | 6 +++--- src/panels/config/helpers/forms/ha-input_datetime-form.ts | 6 +++--- src/panels/config/helpers/forms/ha-input_number-form.ts | 6 +++--- src/panels/config/helpers/forms/ha-input_select-form.ts | 6 +++--- src/panels/config/helpers/forms/ha-input_text-form.ts | 6 +++--- src/panels/config/helpers/forms/ha-schedule-form.ts | 6 +++--- src/panels/config/helpers/forms/ha-timer-form.ts | 6 +++--- 9 files changed, 27 insertions(+), 27 deletions(-) diff --git a/src/panels/config/helpers/forms/ha-counter-form.ts b/src/panels/config/helpers/forms/ha-counter-form.ts index 58af320e52..92c844af88 100644 --- a/src/panels/config/helpers/forms/ha-counter-form.ts +++ b/src/panels/config/helpers/forms/ha-counter-form.ts @@ -64,7 +64,6 @@ class HaCounterForm extends LitElement { if (!this.hass) { return nothing; } - const nameInvalid = !this._name || this._name.trim() === ""; return html`