w1ll1am23 / pyeconet

Python 3 interface to the EcoNet API
MIT License
34 stars 20 forks source link

ValueError with paho-mqtt >= 2.0.0 #42

Open gnuite opened 2 months ago

gnuite commented 2 months ago

When using a version of paho-mqtt greater than 1.6.1 (i.e. 2.0.0 or later), the following ValueError is produced:

ValueError: Unsupported callback API version: version 2.0 added a callback_api_version, see docs/migrations.rst for details

I guess we just need to use the new callback_api_version parameter, i.e. CallbackAPIVersion.VERSION1 for now; maybe consider migrating to VERSION2 in a future release?