From 4be168d0eb7963b2d0eeeb5097c75a6839d51b76 Mon Sep 17 00:00:00 2001 From: Cyrill Raccaud Date: Thu, 22 Aug 2024 23:30:19 +0200 Subject: [PATCH] cleanup mqtt client setup --- docker2mqtt/docker2mqtt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker2mqtt/docker2mqtt.py b/docker2mqtt/docker2mqtt.py index cb1b8ff..6b9c398 100755 --- a/docker2mqtt/docker2mqtt.py +++ b/docker2mqtt/docker2mqtt.py @@ -147,7 +147,7 @@ def __init__(self, cfg: Docker2MqttConfig): # Setup MQTT self.mqtt = paho.mqtt.client.Client( - paho.mqtt.client.CallbackAPIVersion.VERSION2, # type: ignore + callback_api_version=paho.mqtt.client.CallbackAPIVersion.VERSION2, # type: ignore client_id=self.cfg["mqtt_client_id"], ) self.mqtt.username_pw_set(