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(