From 82cd097c2c0603b1f7319f2f227f46e229b34f04 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Sun, 16 Jul 2023 17:24:57 -0600 Subject: [PATCH] Cleanup --- frigate/events/audio.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frigate/events/audio.py b/frigate/events/audio.py index 70f032d03..9fb134fc8 100644 --- a/frigate/events/audio.py +++ b/frigate/events/audio.py @@ -201,8 +201,7 @@ class AudioEventMaintainer(threading.Thread): if label not in self.config.audio.listen: continue - filter = self.config.audio.filters - if filter is None or score > filter.get(label, {}).get( + if score > (self.config.audio.filters or {}).get(label, {}).get( "threshold", 0.8 ): self.handle_detection(label, score)