smarthomeNG / smarthome

Device integration platform for your smart home
https://www.smarthomeNG.de
GNU General Public License v3.0
122 stars 91 forks source link

Incompability to paho-mqtt-2.0.0 #632

Open AAPohl opened 9 months ago

AAPohl commented 9 months ago

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

msinn commented 9 months ago

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