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) => {