I installed the library using pip install lghorizon, which installs paho_mqtt-2.1.0 due to the requirement paho-mqtt>=1.5.0. Unfortunately, paho-mqtt version 2 introduced some breaking changes. Running the test.py script results in the following error after authentication when trying to connect to a Ziggo NL account:
2024-08-26 17:06:56,098 - INFO - Backing off connect(...) for 2.0s (ValueError: Unsupported callback API version: version 2.0 added a callback_api_version, see docs/migrations.rst for details)
Backing off connect(...) for 2.0s (ValueError: Unsupported callback API version: version 2.0 added a callback_api_version, see docs/migrations.rst for details)
This can be fixed with the following modification to the models.py file:
I installed the library using
pip install lghorizon
, which installspaho_mqtt-2.1.0
due to the requirementpaho-mqtt>=1.5.0
. Unfortunately, paho-mqtt version 2 introduced some breaking changes. Running the test.py script results in the following error after authentication when trying to connect to a Ziggo NL account:This can be fixed with the following modification to the models.py file: