NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Set commands before subscribing to messages (#7550)
Nicolas Mowenbd0d16a75b56
diff --git a/frigate/comms/dispatcher.py b/frigate/comms/dispatcher.pyindex 56a2c5c9b5..e97095c8a8 100644--- a/frigate/comms/dispatcher.py+++ b/frigate/comms/dispatcher.py@@ -52,9 +52,6 @@ class Dispatcher:self.ptz_metrics = ptz_metricsself.comms = communicators- for comm in self.comms:- comm.subscribe(self._receive)-self._camera_settings_handlers: dict[str, Callable] = {"audio": self._on_audio_command,"detect": self._on_detect_command,@@ -67,6 +64,9 @@ class Dispatcher:"snapshots": self._on_snapshots_command,}+ for comm in self.comms:+ comm.subscribe(self._receive)+def _receive(self, topic: str, payload: str) -> None:"""Handle receiving of payload from communicators."""if topic.endswith("set"):