relay mqtt to clients

This commit is contained in:
Blake Blackshear
2021-02-13 09:33:32 -06:00
parent 22461d1728
commit 718b4f3fd7
2 changed files with 41 additions and 4 deletions

View File

@@ -137,7 +137,7 @@ class FrigateApp():
self.stats_tracking = stats_init(self.camera_metrics, self.detectors)
def init_web_server(self):
self.flask_app = create_app(self.config, self.db, self.stats_tracking, self.detected_frames_processor)
self.flask_app = create_app(self.config, self.db, self.stats_tracking, self.detected_frames_processor, self.mqtt_client)
def init_mqtt(self):
self.mqtt_client = create_mqtt_client(self.config, self.camera_metrics)