mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 11:16:35 +00:00
Fixes history graph card defaults (#4198)
This commit is contained in:
parent
5a7b5200fe
commit
f1980d6bcf
@ -59,11 +59,11 @@ export class HuiHistoryGraphCardEditor extends LitElement
|
|||||||
}
|
}
|
||||||
|
|
||||||
get _hours_to_show(): number {
|
get _hours_to_show(): number {
|
||||||
return this._config!.number || 24;
|
return this._config!.hours_to_show || 24;
|
||||||
}
|
}
|
||||||
|
|
||||||
get _refresh_interval(): number {
|
get _refresh_interval(): number {
|
||||||
return this._config!.number || 0;
|
return this._config!.refresh_interval || 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected render(): TemplateResult | void {
|
protected render(): TemplateResult | void {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user