Skip to content

Commit f055730

Browse files
committed
fix missing argument in paho.disconnect (fixes #47)
1 parent 4605269 commit f055730

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

enoceanmqtt/communicator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def _on_connect(self, mqtt_client, _userdata, _flags, reason_code, properties):
8080
else:
8181
logging.error("Error connecting to MQTT broker: %s", reason_code)
8282

83-
def _on_disconnect(self, _mqtt_client, _userdata, reason_code, properties):
83+
def _on_disconnect(self, _mqtt_client, _userdata, _flags, reason_code, properties):
8484
'''callback for when the client disconnects from the MQTT server.'''
8585
if reason_code == 0:
8686
logging.warning("Successfully disconnected from MQTT broker")

0 commit comments

Comments
 (0)