Bugfix: ensure all object labels are added to zones (#16686)

This commit is contained in:
Josh Hawkins 2025-02-19 07:25:39 -06:00 committed by GitHub
parent b34fb8bf7c
commit 0083d09a8b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,7 +33,11 @@ class CameraActivityManager:
self.zone_active_object_counts[zone] = Counter()
self.all_zone_labels[zone] = set()
self.all_zone_labels[zone].update(zone_config.objects)
self.all_zone_labels[zone].update(
zone_config.objects
if zone_config.objects
else camera_config.objects.track
)
def update_activity(self, new_activity: dict[str, dict[str, any]]) -> None:
all_objects: list[dict[str, any]] = []