From 6d01728d54268bf6833a802b825ca850b74ad6f0 Mon Sep 17 00:00:00 2001 From: Alex Jurkiewicz Date: Mon, 2 Dec 2024 18:48:12 +0800 Subject: [PATCH] `history-graph-card-editor`: Correct `hours_to_show` validation (#23090) history-graph-card-editor: Correct hours_to_show validation Allow all floating point numbers from 0 up. Fixes #15933. --- .../editor/config-elements/hui-history-graph-card-editor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panels/lovelace/editor/config-elements/hui-history-graph-card-editor.ts b/src/panels/lovelace/editor/config-elements/hui-history-graph-card-editor.ts index 2b76aa30a9..81ce443d72 100644 --- a/src/panels/lovelace/editor/config-elements/hui-history-graph-card-editor.ts +++ b/src/panels/lovelace/editor/config-elements/hui-history-graph-card-editor.ts @@ -68,7 +68,7 @@ export class HuiHistoryGraphCardEditor { name: "hours_to_show", default: DEFAULT_HOURS_TO_SHOW, - selector: { number: { min: 1, mode: "box" } }, + selector: { number: { min: 0, step: "any", mode: "box" } }, }, ], },