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 GitHub
parent 5c681896f3
commit 5500dd1332
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -68,7 +68,7 @@ export class HuiHistoryGraphCardEditor
{ {
name: "hours_to_show", name: "hours_to_show",
default: DEFAULT_HOURS_TO_SHOW, default: DEFAULT_HOURS_TO_SHOW,
selector: { number: { min: 1, mode: "box" } }, selector: { number: { min: 0, step: "any", mode: "box" } },
}, },
], ],
}, },