Skip to content

Commit

Permalink
cleanup mqtt client setup
Browse files Browse the repository at this point in the history
  • Loading branch information
miaucl committed Aug 22, 2024
1 parent 65fb30e commit 4be168d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker2mqtt/docker2mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 4be168d

Please sign in to comment.