@@ -356,7 +356,7 @@ def check_if_new_segment(
356
356
if (
357
357
not severity
358
358
and (
359
- not camera_config .review .detections .labels
359
+ camera_config .review .detections .labels is None
360
360
or object ["label" ] in (camera_config .review .detections .labels )
361
361
)
362
362
and (
@@ -467,7 +467,7 @@ def run(self) -> None:
467
467
current_segment .audio .add (audio )
468
468
current_segment .severity = SeverityEnum .alert
469
469
elif (
470
- not camera_config .review .detections .labels
470
+ camera_config .review .detections .labels is None
471
471
or audio in camera_config .review .detections .labels
472
472
):
473
473
current_segment .audio .add (audio )
@@ -510,7 +510,7 @@ def run(self) -> None:
510
510
detections .add (audio )
511
511
severity = SeverityEnum .alert
512
512
elif (
513
- not camera_config .review .detections .labels
513
+ camera_config .review .detections .labels is None
514
514
or audio in camera_config .review .detections .labels
515
515
):
516
516
detections .add (audio )
@@ -571,7 +571,7 @@ def get_active_objects(
571
571
and (
572
572
o ["label" ] in camera_config .review .alerts .labels
573
573
or (
574
- not camera_config .review .detections .labels
574
+ camera_config .review .detections .labels is None
575
575
or o ["label" ] in camera_config .review .detections .labels
576
576
)
577
577
) # object must be in the alerts or detections label list
0 commit comments