diff --git a/notifier/src/notifier/frigate/mqtt.py b/notifier/src/notifier/frigate/mqtt.py index fa5d7b8..7822516 100644 --- a/notifier/src/notifier/frigate/mqtt.py +++ b/notifier/src/notifier/frigate/mqtt.py @@ -16,6 +16,8 @@ class MQTTSubscriber: self._client = MQTTClient() if username and password: self._client.username_pw_set(username, password=password) + self._client.on_connect = self._on_connect + self._client.on_message = self._on_message def subscribe(self) -> None: self._client.connect(host=self._host, port=self._port)