From 0fbf68bc0a76a28e76c0c4c6ea02b681590f951e Mon Sep 17 00:00:00 2001 From: Julien <6372605+fetzu@users.noreply.github.com> Date: Sun, 11 Feb 2024 23:44:13 +0100 Subject: [PATCH] !fix: specifying the paho-mqtt API version ~ Speficy "mqtt.CallbackAPIVersion.VERSION2" on Client; not sure if this will fix it... --- teslamate_mqtt2abrp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teslamate_mqtt2abrp.py b/teslamate_mqtt2abrp.py index fa31e95..c757bc0 100644 --- a/teslamate_mqtt2abrp.py +++ b/teslamate_mqtt2abrp.py @@ -164,7 +164,7 @@ def niceNow(): ## [ MQTT ] # Initialize MQTT client and connect -client = mqtt.Client(f"teslamateToABRP-{CARNUMBER}") +client = mqtt.Client(mqtt.CallbackAPIVersion.VERSION2, f"teslamateToABRP-{CARNUMBER}") if MQTTUSERNAME is not None: if MQTTPASSWORD is not None: logging.debug("Using MQTT username: {} and password '******'".format(MQTTUSERNAME))