Skip to content

Commit

Permalink
Fix audio filter config (#7401)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 authored Aug 6, 2023
1 parent 318ae28 commit fbed3fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frigate/events/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def detect_audio(self, audio) -> None:
if label not in self.config.audio.listen:
continue

if score > (self.config.audio.filters or {}).get(label, {}).get(
if score > dict((self.config.audio.filters or {}).get(label, {})).get(
"threshold", 0.8
):
self.handle_detection(label, score)
Expand Down

0 comments on commit fbed3fb

Please sign in to comment.