koochyrat / comfort2

Cytech Comfort 2 Alarm MQTT Bridge (Home Assistant/OpenHAB compatible)
Apache License 2.0
6 stars 4 forks source link

Crash on Paho MQTT 2.0 - Unsupported Callback #7

Open koochyrat opened 3 months ago

koochyrat commented 3 months ago

https://stackoverflow.com/questions/77984857/paho-mqtt-unsupported-callback-api-version-error?noredirect=1

Fix: The line in the code, right at the end that says mqttc = Comfort2(DOMAIN) has been changed to read mqttc = Comfort2(mqtt.CallbackAPIVersion.VERSION1,DOMAIN).

Thanks to Mike Weaver for reporting.