mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Fix recorder LRU being destroyed if event session is reopened (#88448)
This commit is contained in:
parent
1cdd914411
commit
08cdb0e3ee
@ -1027,11 +1027,11 @@ class Recorder(threading.Thread):
|
||||
|
||||
def _close_event_session(self) -> None:
|
||||
"""Close the event session."""
|
||||
self._old_states = {}
|
||||
self._state_attributes_ids = {}
|
||||
self._event_data_ids = {}
|
||||
self._pending_state_attributes = {}
|
||||
self._pending_event_data = {}
|
||||
self._old_states.clear()
|
||||
self._state_attributes_ids.clear()
|
||||
self._event_data_ids.clear()
|
||||
self._pending_state_attributes.clear()
|
||||
self._pending_event_data.clear()
|
||||
|
||||
if not self.event_session:
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user