Skip to content

Commit

Permalink
Merge pull request #831 from mqtt-tools/callbackapi-default
Browse files Browse the repository at this point in the history
Remedy breaking change with 2.x: Use `CallbackAPIVersion.VERSION1` as a default
  • Loading branch information
PierreF authored Apr 12, 2024
2 parents 28aa2e6 + 5c77540 commit 6683aa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/paho/mqtt/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ def on_connect(client, userdata, flags, reason_code, properties):

def __init__(
self,
callback_api_version: CallbackAPIVersion,
callback_api_version: CallbackAPIVersion = CallbackAPIVersion.VERSION1,
client_id: str | None = "",
clean_session: bool | None = None,
userdata: Any = None,
Expand Down

0 comments on commit 6683aa6

Please sign in to comment.