Fix audio filter config (#7401)

This commit is contained in:
Nicolas Mowen
2023-08-06 11:19:28 -06:00
committed by GitHub
parent 318ae28004
commit fbed3fbb8b

View File

@@ -198,7 +198,7 @@ class AudioEventMaintainer(threading.Thread):
if label not in self.config.audio.listen: if label not in self.config.audio.listen:
continue 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 "threshold", 0.8
): ):
self.handle_detection(label, score) self.handle_detection(label, score)