diff --git a/src/panels/lovelace/header-footer/hui-graph-header-footer.ts b/src/panels/lovelace/header-footer/hui-graph-header-footer.ts index f2264a3056..12dbbfdcaf 100644 --- a/src/panels/lovelace/header-footer/hui-graph-header-footer.ts +++ b/src/panels/lovelace/header-footer/hui-graph-header-footer.ts @@ -186,10 +186,10 @@ export class HuiGraphHeaderFooter } private _unsubscribeHistoryTimeWindow() { + clearInterval(this._interval); if (!this._subscribed) { return; } - clearInterval(this._interval); this._subscribed.then((unsubscribe) => { if (unsubscribe) { unsubscribe();