From f51ea9d0150e9cd9f886531d18988f41a459faa4 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Mon, 7 Mar 2022 11:27:43 -0700 Subject: [PATCH] Using == not is --- frigate/object_processing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frigate/object_processing.py b/frigate/object_processing.py index fd1406f47..759f5909a 100644 --- a/frigate/object_processing.py +++ b/frigate/object_processing.py @@ -580,7 +580,7 @@ class CameraState: ] for obj_name in expired_objects: # Ignore the artificial all label - if obj_name is "all": + if obj_name == "all": continue self.object_counts[obj_name] = 0 @@ -909,7 +909,7 @@ class TrackedObjectProcessor(threading.Thread): # update counts and publish status for label in set(self.zone_data[zone].keys()) | set(obj_counter.keys()): # Ignore the artificial all label - if label is "all": + if label == "all": continue # if we have previously published a count for this zone/label