Fixes history graph card defaults (#4198)

This commit is contained in:
Joakim Sørensen 2019-11-09 17:30:08 +01:00 committed by Bram Kragten
parent 5a7b5200fe
commit f1980d6bcf

View File

@ -59,11 +59,11 @@ export class HuiHistoryGraphCardEditor extends LitElement
}
get _hours_to_show(): number {
return this._config!.number || 24;
return this._config!.hours_to_show || 24;
}
get _refresh_interval(): number {
return this._config!.number || 0;
return this._config!.refresh_interval || 0;
}
protected render(): TemplateResult | void {