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} >