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,