diff --git a/src/dialogs/more-info/ha-more-info-tab-history.ts b/src/dialogs/more-info/ha-more-info-tab-history.ts index eeb00cef33..847cc57d36 100644 --- a/src/dialogs/more-info/ha-more-info-tab-history.ts +++ b/src/dialogs/more-info/ha-more-info-tab-history.ts @@ -89,14 +89,7 @@ export class MoreInfoTabHistoryDialog extends LitElement { return; } - const oldHass = changedProps.get("hass") as HomeAssistant; - const newStateObj = this.hass.states[this.entityId]; - const oldStateObj = oldHass?.states[this.entityId]; - - if ( - changedProps.has("entityId") || - (oldHass && newStateObj !== oldStateObj) - ) { + if (changedProps.has("entityId")) { this._stateHistory = undefined; this._entries = undefined; @@ -106,6 +99,7 @@ export class MoreInfoTabHistoryDialog extends LitElement { clearInterval(this._historyRefreshInterval); this._historyRefreshInterval = window.setInterval(() => { this._getStateHistory(); + this._getLogBookData(); }, 60 * 1000); } }