paho-mqtt breaking changes
paho-mqtt 2.2.0 (November 4, 2026) is its newest release with breaking changes, 7 of them. The first: paho-mqtt 2.2.0 drops support for Python 3.7 and 3.8. Every breaking API change we have recorded in paho-mqtt on PyPI: 38 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 2.2.0, released November 4, 2026. Source repository
Its 2.2.0 release drops Python 3.7 and 3.8. Python end of life dates.
paho-mqtt 2.2.0 breaking changes
- Removed
The release drops support for Python 3.7 and 3.8. Users on those versions must upgrade Python before installing this release. github.com - Behavior changed
Client.callback_api_version
Passing a wrong-typed value for the Client callback_api_version parameter now raises TypeError instead of ValueError. Code catching ValueError for this case must catch TypeError. github.com - Behavior changed
max_queued_messages_set
Passing a wrong-typed value to max_queued_messages_set now raises TypeError instead of ValueError. Code catching ValueError for this case must catch TypeError. github.com - Signature changed
paho.mqtt.client.Client.will_payload
Was will_payload: bytes | None; now will_payload: bytes | bytearray | None. pypi.org - Signature changed
paho.mqtt.client.convert_connack_rc_to_reason_code
Was def convert_connack_rc_to_reason_code(connack_code: ConnackCode) -> ReasonCode; now convert_connack_rc_to_reason_code. pypi.org - Signature changed
paho.mqtt.client.SocketLike.send
Was def send(self, buffer: bytes) -> int; now def send(self, buffer: bytes | bytearray) -> int. pypi.org - Signature changed
paho.mqtt.properties.readBytes
Was def readBytes(buffer); now def readBytes(buffer, maxlen). pypi.org
paho-mqtt 2.1.0 breaking changes
- Signature changed
paho.mqtt.client.Client.__init__
Was def __init__(self, callback_api_version: CallbackAPIVersion, client_id: str = '', clean_session: bool | None = None, userdata: Any = None, protocol: int = MQTTv311, transport: Literal['tcp', 'websockets'] = 'tcp', reconnect_on_failure... pypi.org - Signature changed
paho.mqtt.client.Client.transport
Was transport: Literal['tcp', 'websockets']; now transport: Literal['tcp', 'websockets', 'unix']. pypi.org - Signature changed
paho.mqtt.client.Client.unsubscribe
Was def unsubscribe(self, topic: str, properties: Properties | None = None) -> tuple[MQTTErrorCode, int | None]; now def unsubscribe(self, topic: str | list[str], properties: Properties | None = None) -> tuple[MQTTErrorCode, int | None]. pypi.org - Signature changed
paho.mqtt.client.error_string
Was def error_string(mqtt_errno: MQTTErrorCode) -> str; now def error_string(mqtt_errno: MQTTErrorCode | int) -> str. pypi.org - Signature changed
paho.mqtt.publish.multiple
Was def multiple(msgs: MessagesList, hostname: str = 'localhost', port: int = 1883, client_id: str = '', keepalive: int = 60, will: MessageDict | None = None, auth: AuthParameter | None = None, tls: TLSParameter | None = None, protocol... pypi.org - Signature changed
paho.mqtt.publish.single
Was def single(topic: str, payload: paho.PayloadType = None, qos: int = 0, retain: bool = False, hostname: str = 'localhost', port: int = 1883, client_id: str = '', keepalive: int = 60, will: MessageDict | None = None, auth: AuthParameter... pypi.org
paho-mqtt 2.0.0 breaking changes
- Removed
base62
Private helpers base62, WebsocketWrapper and ConnectionState were removed from the public interface. github.com - Removed
Client.loop
The max_packets argument of loop(), loop_write() and loop_forever() was removed. github.com - Removed
Client.loop_stop
The force argument of loop_stop() was removed. github.com - Removed
Client.message_retry_set
The message_retry_set() method was removed. github.com - Removed
ConnectionState
ConnectionState is no longer exposed. github.com - Removed
WebsocketWrapper
WebsocketWrapper is no longer exposed. github.com - Behavior changed
MQTTMessage.dup
Code comparing msg.dup == 1 must be changed to a truthiness check. eclipse.dev - Behavior changed
on_connect
Reason code comparisons with integer values such as rc == 1 must be replaced with string comparisons. eclipse.dev - Behavior changed
on_publish
Under version 2 on_publish takes extra reason_codes and properties arguments; callbacks must be updated. eclipse.dev - Signature changed
Client
Client() takes a new first argument callback_api_version; existing code must pass CallbackAPIVersion.VERSION1 to keep old callbacks working. github.com
And 4 more in this version. Sign up to see every change
paho-mqtt 2.0.0rc2 breaking changes
- Removed
Client.loop
The max_packets argument of loop(), loop_write() and loop_forever() was removed; drop it from calls. github.com - Removed
Client.loop_stop
The force argument of loop_stop() was removed; drop it from calls. github.com - Removed
Client.message_retry_set
The message_retry_set() method was removed. github.com - Behavior changed
Client.logger
Client gained properties such as logger; a subclass defining the same name will conflict. github.com - Behavior changed
Client.loop_stop
Returned error codes such as MQTT_ERR_SUCCESS are an IntEnum; code comparing with 'rc is 0' instead of '== 0' may break. github.com - Behavior changed
MQTTMessage.dup
The dup and retain fields are booleans instead of integers 0 and 1; comparisons like msg.dup == 1 must change. github.com - Behavior changed
MQTTMessage.retain
The retain field is a boolean instead of integer 0 and 1. github.com - Behavior changed
on_connect
With MQTTv5 the reason passed to on_connect is always a ReasonCode object, not sometimes an integer. github.com - Configuration changed
Python 2.7, 3.5 and 3.6 are no longer supported; minimum tested version is Python 3.7. github.com - Signature changed
Client
Client() takes a new first argument callback_api_version; existing code must pass CallbackAPIVersion.VERSION1 to keep old callbacks working. github.com
And 1 more in this version. Sign up to see every change
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.