From 42606062675aefa310af0b60b0db01e4cf9bdbcc Mon Sep 17 00:00:00 2001 From: Philip Allgaier Date: Tue, 29 Jun 2021 15:01:18 +0200 Subject: [PATCH] Set minimum = 1 hours to show (#9466) --- .../lovelace/editor/config-elements/hui-graph-footer-editor.ts | 1 + .../lovelace/editor/config-elements/hui-logbook-card-editor.ts | 1 + .../lovelace/editor/config-elements/hui-sensor-card-editor.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/src/panels/lovelace/editor/config-elements/hui-graph-footer-editor.ts b/src/panels/lovelace/editor/config-elements/hui-graph-footer-editor.ts index 65b591c164..88277bc588 100644 --- a/src/panels/lovelace/editor/config-elements/hui-graph-footer-editor.ts +++ b/src/panels/lovelace/editor/config-elements/hui-graph-footer-editor.ts @@ -81,6 +81,7 @@ export class HuiGraphFooterEditor "ui.panel.lovelace.editor.card.config.optional" )})" .value=${this._hours_to_show} + min="1" .configValue=${"hours_to_show"} @value-changed=${this._valueChanged} > diff --git a/src/panels/lovelace/editor/config-elements/hui-logbook-card-editor.ts b/src/panels/lovelace/editor/config-elements/hui-logbook-card-editor.ts index ae710c5dbf..83f99d944b 100644 --- a/src/panels/lovelace/editor/config-elements/hui-logbook-card-editor.ts +++ b/src/panels/lovelace/editor/config-elements/hui-logbook-card-editor.ts @@ -85,6 +85,7 @@ export class HuiLogbookCardEditor "ui.panel.lovelace.editor.card.config.optional" )})" .value=${this._hours_to_show} + min="1" .configValue=${"hours_to_show"} @value-changed=${this._valueChanged} > diff --git a/src/panels/lovelace/editor/config-elements/hui-sensor-card-editor.ts b/src/panels/lovelace/editor/config-elements/hui-sensor-card-editor.ts index 3f707cc1fe..c39f907677 100644 --- a/src/panels/lovelace/editor/config-elements/hui-sensor-card-editor.ts +++ b/src/panels/lovelace/editor/config-elements/hui-sensor-card-editor.ts @@ -177,6 +177,7 @@ export class HuiSensorCardEditor )})" type="number" .value=${this._hours_to_show} + min="1" .configValue=${"hours_to_show"} @value-changed=${this._valueChanged} >