From 9f9ab6c23889291ed1af9a248c4242ce033f9796 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 21 Jan 2023 17:10:55 -1000 Subject: [PATCH] review --- src/dialogs/more-info/ha-more-info-history.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dialogs/more-info/ha-more-info-history.ts b/src/dialogs/more-info/ha-more-info-history.ts index e6e03dc8c2..dd2a5c1165 100644 --- a/src/dialogs/more-info/ha-more-info-history.ts +++ b/src/dialogs/more-info/ha-more-info-history.ts @@ -164,6 +164,9 @@ export class MoreInfoHistory extends LitElement { if (!isComponentLoaded(this.hass, "history") || this._subscribed) { return; } + if (this._subscribed) { + this._unsubscribeHistoryTimeWindow(); + } this._subscribed = subscribeHistoryStatesTimeWindow( this.hass!, (combinedHistory) => {