diff --git a/lib/TWCManager/Vehicle/TeslaMateVehicle.py b/lib/TWCManager/Vehicle/TeslaMateVehicle.py index 7545cf3d..ae03a5aa 100644 --- a/lib/TWCManager/Vehicle/TeslaMateVehicle.py +++ b/lib/TWCManager/Vehicle/TeslaMateVehicle.py @@ -238,7 +238,7 @@ def mqttConnect(self, client, userdata, flags, rc, properties=None): res = client.subscribe(topic, qos=0) logger.log(logging.INFO5, "Res: " + str(res)) - def mqttDisconnect(self, client, userdata, rc): + def mqttDisconnect(self, client, flags, rc, properties=None): if rc != 0: logger.log(logging.INFO5, "MQTT Disconnected. Should reconnect automatically.")