From 28bae5071cd72de7198357e110db0a59b7be5537 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Tue, 13 Sep 2022 20:53:55 +0200 Subject: [PATCH] Revert "Add initial field to the helper input_number in UI" (#13713) --- .../config/helpers/forms/ha-input_number-form.ts | 13 ------------- src/translations/en.json | 1 - 2 files changed, 14 deletions(-) diff --git a/src/panels/config/helpers/forms/ha-input_number-form.ts b/src/panels/config/helpers/forms/ha-input_number-form.ts index e6de46796f..a1196cbf22 100644 --- a/src/panels/config/helpers/forms/ha-input_number-form.ts +++ b/src/panels/config/helpers/forms/ha-input_number-form.ts @@ -26,8 +26,6 @@ class HaInputNumberForm extends LitElement { @state() private _min?: number; - @state() private _initial?: number; - @state() private _mode?: string; @state() private _step?: number; @@ -44,7 +42,6 @@ class HaInputNumberForm extends LitElement { this._min = item.min ?? 0; this._mode = item.mode || "slider"; this._step = item.step ?? 1; - this._initial = item.initial ?? 0; this._unit_of_measurement = item.unit_of_measurement; } else { this._item = { @@ -57,7 +54,6 @@ class HaInputNumberForm extends LitElement { this._min = 0; this._mode = "slider"; this._step = 1; - this._initial = 0; } } @@ -117,15 +113,6 @@ class HaInputNumberForm extends LitElement { "ui.dialogs.helper_settings.input_number.max" )} > - ${this.hass.userData?.showAdvanced ? html`
diff --git a/src/translations/en.json b/src/translations/en.json index 4ca9e25056..c3fa44cf73 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -924,7 +924,6 @@ "pattern": "Regex pattern for client-side validation" }, "input_number": { - "initial": "Initial value", "min": "Minimum value", "max": "Maximum value", "mode": "Display mode",