Skip to content

Commit

Permalink
Update mqttDisconnect() for MQTTv5 support
Browse files Browse the repository at this point in the history
  • Loading branch information
RichieB2B committed Mar 23, 2024
1 parent caa76ab commit 69027ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/TWCManager/Vehicle/TeslaMateVehicle.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")

Expand Down

0 comments on commit 69027ca

Please sign in to comment.