Remove unnecessary assignment in Recorder._process_state_changed_event_into_session (#132011)

This commit is contained in:
Erik Montnemery 2024-12-01 19:40:40 +01:00 committed by GitHub
parent cf0ee63507
commit ff1702eefa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1128,7 +1128,6 @@ class Recorder(threading.Thread):
# Map the event data to the StateAttributes table
shared_attrs = shared_attrs_bytes.decode("utf-8")
dbstate.attributes = None
# Matching attributes found in the pending commit
if pending_event_data := state_attributes_manager.get_pending(shared_attrs):
dbstate.state_attributes = pending_event_data