NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
check for config update before state evaluation (#22495)
Josh Hawkins01c16a9250e2
diff --git a/frigate/events/audio.py b/frigate/events/audio.pyindex e88f2ae71d..4af195990d 100644--- a/frigate/events/audio.py+++ b/frigate/events/audio.py@@ -321,6 +321,9 @@ class AudioEventMaintainer(threading.Thread):self.start_or_restart_ffmpeg()while not self.stop_event.is_set():+ # check if there is an updated config+ self.config_subscriber.check_for_updates()+enabled = self.camera_config.enabledif enabled != self.was_enabled:if enabled:@@ -347,9 +350,6 @@ class AudioEventMaintainer(threading.Thread):time.sleep(0.1)continue- # check if there is an updated config- self.config_subscriber.check_for_updates()-self.read_audio()if self.audio_listener: