From f40d2103ad63cea2e52528da49647d9f30afd876 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Sat, 1 Jul 2023 09:49:27 -0600 Subject: [PATCH] Delete instead of setting to None --- frigate/events/audio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/events/audio.py b/frigate/events/audio.py index 4f40334d4..e1d25e018 100644 --- a/frigate/events/audio.py +++ b/frigate/events/audio.py @@ -206,7 +206,7 @@ class AudioEventMaintainer(threading.Thread): now - detection.get("last_detection", now) > self.config.audio.max_not_heard ): - self.detections[detection["label"]] = None + del self.detections[detection["label"]] requests.put( f"{FRIGATE_LOCALHOST}/api/events/{detection['id']}/end", json={