From d0f0dbddd3123bf9c72d07f7493fc05a5c990056 Mon Sep 17 00:00:00 2001 From: JamesParrott <80779630+JamesParrott@users.noreply.github.com> Date: Mon, 13 May 2024 20:58:39 +0100 Subject: [PATCH] Update Client.__init__ signature to v1/v2 in Client.reinitialise Fixes #841 --- src/paho/mqtt/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/paho/mqtt/client.py b/src/paho/mqtt/client.py index 4ccc8696..39f00af1 100644 --- a/src/paho/mqtt/client.py +++ b/src/paho/mqtt/client.py @@ -1153,7 +1153,7 @@ def reinitialise( ) -> None: self._reset_sockets() - self.__init__(client_id, clean_session, userdata) # type: ignore[misc] + self.__init__(self.callback_api_version, client_id, clean_session, userdata) # type: ignore[misc] def ws_set_options( self,