Skip to content

Commit 6683aa6

Browse files
authored
Merge pull request #831 from mqtt-tools/callbackapi-default
Remedy breaking change with 2.x: Use `CallbackAPIVersion.VERSION1` as a default
2 parents 28aa2e6 + 5c77540 commit 6683aa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/paho/mqtt/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ def on_connect(client, userdata, flags, reason_code, properties):
728728

729729
def __init__(
730730
self,
731-
callback_api_version: CallbackAPIVersion,
731+
callback_api_version: CallbackAPIVersion = CallbackAPIVersion.VERSION1,
732732
client_id: str | None = "",
733733
clean_session: bool | None = None,
734734
userdata: Any = None,

0 commit comments

Comments
 (0)