Consider new attribute a significant change

This commit is contained in:
Nicolas Mowen 2023-10-03 14:58:37 -06:00 committed by GitHub
parent 9a4f970337
commit f18b1fce25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -232,6 +232,9 @@ class TrackedObject:
if self.obj_data["position_changes"] != obj_data["position_changes"]:
significant_change = True
if self.obj_data["attributes"] != obj_data["attributes]:
significant_change = True
# if the motionless_count reaches the stationary threshold
if (
self.obj_data["motionless_count"]