ParadoxAlarmInterface / pai

Paradox Magellan, Spectra and EVO, with MQTT, Signal, Pushbullet, Pushover and others
https://gitter.im/paradox-alarm-interface
Eclipse Public License 2.0
358 stars 94 forks source link

Require Paho MQTT below 2.x version. #458

Closed lpaolini closed 7 months ago

lpaolini commented 7 months ago

Same as 9dbe5bc.

pai  | 2024-04-18 18:35:15,978 - ERROR    - PAI.paradox.interfaces.interface_manager - Unable to start MQTT Interface
pai  | Traceback (most recent call last):
pai  |   File "/usr/local/lib/python3.9/site-packages/paradox/interfaces/interface_manager.py", line 37, in start
pai  |     self.register(BasicMQTTInterface(self.alarm))
pai  |   File "/usr/local/lib/python3.9/site-packages/paradox/interfaces/mqtt/basic.py", line 97, in __init__
pai  |     super().__init__(alarm)
pai  |   File "/usr/local/lib/python3.9/site-packages/paradox/interfaces/mqtt/core.py", line 231, in __init__
pai  |     self.mqtt = MQTTConnection.get_instance()
pai  |   File "/usr/local/lib/python3.9/site-packages/paradox/interfaces/mqtt/core.py", line 50, in get_instance
pai  |     cls._instance = MQTTConnection()
pai  |   File "/usr/local/lib/python3.9/site-packages/paradox/interfaces/mqtt/core.py", line 55, in __init__
pai  |     self.client = Client(
pai  |   File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 766, in __init__
pai  |     raise ValueError(
pai  | ValueError: Unsupported callback API version: version 2.0 added a callback_api_version, see migrations.md for details
sonarcloud[bot] commented 7 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

yozik04 commented 7 months ago

I have all the fixes in dev branch. I will merge today.

lpaolini commented 7 months ago

Awesome, thanks.

yozik04 commented 7 months ago

Check #457