Ensure attributes are only updated once

This commit is contained in:
Nicolas Mowen 2023-10-04 08:44:51 -06:00 committed by GitHub
parent 511fbe4ef4
commit 8387f7543c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,6 +42,9 @@ def should_update_state(prev_event: Event, current_event: Event) -> bool:
if prev_event["stationary"] != current_event["stationary"]:
return True
if prev_event["attributes"] != current_event["attributes"]:
return True
return False