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.
This commit is contained in:
Alex Jurkiewicz 2024-12-02 18:48:12 +08:00 committed by Bram Kragten
parent 2550bff4e9
commit 6d01728d54

View File

@ -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" } },
},
],
},