mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +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:
|
def _close_event_session(self) -> None:
|
||||||
"""Close the event session."""
|
"""Close the event session."""
|
||||||
self._old_states = {}
|
self._old_states.clear()
|
||||||
self._state_attributes_ids = {}
|
self._state_attributes_ids.clear()
|
||||||
self._event_data_ids = {}
|
self._event_data_ids.clear()
|
||||||
self._pending_state_attributes = {}
|
self._pending_state_attributes.clear()
|
||||||
self._pending_event_data = {}
|
self._pending_event_data.clear()
|
||||||
|
|
||||||
if not self.event_session:
|
if not self.event_session:
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user