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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)