Reduce zones for timeline (#8300)

This commit is contained in:
Nicolas Mowen 2023-10-24 17:24:59 -06:00 committed by GitHub
parent c141362614
commit 823550eed3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,6 +85,7 @@ class TimelineProcessor(threading.Thread):
if (
prev_event_data["current_zones"] != event_data["current_zones"]
and len(event_data["current_zones"]) > 0
and not event_data["stationary"]
):
timeline_entry[Timeline.class_type] = "entered_zone"
timeline_entry[Timeline.data]["zones"] = event_data["current_zones"]