smarthome icon indicating copy to clipboard operation
smarthome copied to clipboard

Incompability to paho-mqtt-2.0.0

Open AAPohl opened this issue 1 year ago • 1 comments

I tried to build smarthomeNG with paho-mqtt-2.0.0 (10.02.2024) as latest. Activating mqtt module fails

File "/usr/local/smarthome/modules/mqtt/init.py", line 220, in _connect_to_broker self._client = mqtt.Client(client_id=clientname) TypeError: Client.init() missing 1 required positional argument: 'callback_api_version'

See: https://eclipse.dev/paho/files/paho.mqtt.python/html/migrations.html

AAPohl avatar Feb 23 '24 21:02 AAPohl

Thanks for the info.

For the moment i changed the requirements in the develop branch to install only paho clients with version below 2.0.0

msinn avatar Feb 24 '24 09:02 msinn