diff --git a/frigate/events/audio.py b/frigate/events/audio.py index 0e877ad7b..68491b8a6 100644 --- a/frigate/events/audio.py +++ b/frigate/events/audio.py @@ -179,7 +179,7 @@ class AudioEventMaintainer(threading.Thread): self.expire_detections() def handle_detection(self, label: str, score: float) -> None: - if self.detections.get(label) is not None: + if self.detections.get(label): self.detections[label][ "last_detection" ] = datetime.datetime.now().timestamp()