You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current directions don't specify a version of paho-mqtt to install, which means users will now be getting the 2.x branch. I know for sure this breaks rtl_433_mqtt_hass.py, and it wouldn't surprise me if it examples/rtl_433_mqtt_relay.py too.
Starting rtl_433_mqtt_hass.py...
[2024-02-17T10:53:24+0100] INFO:root:Enabling debug logging
[2024-02-17T10:53:24+0100] INFO:root:Discovering all devices
Exception ignored in: <function Client.__del__ at 0x7fb05d0900>
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 874, in __del__
self._reset_sockets()
File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 1133, in _reset_sockets
self._sock_close()
File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 1119, in _sock_close
if not self._sock:
^^^^^^^^^^
AttributeError: 'Client' object has no attribute '_sock'
Traceback (most recent call last):
File "/rtl_433_mqtt_hass.py", line 990, in <module>
run()
File "/rtl_433_mqtt_hass.py", line 917, in run
rtl_433_bridge()
File "/rtl_433_mqtt_hass.py", line 888, in rtl_433_bridge
mqttc = mqtt.Client()
^^^^^^^^^^^^^
TypeError: Client.__init__() missing 1 required positional argument: 'callback_api_version'
There's a commit for that as part of #2841. In that PR there are two commits that are essentially fixes and two for adding the feature of being able to pull the MQTT connection details from the rtl_433 conf file. Probably would have been better of those were separate PRs.
The current directions don't specify a version of paho-mqtt to install, which means users will now be getting the 2.x branch. I know for sure this breaks rtl_433_mqtt_hass.py, and it wouldn't surprise me if it examples/rtl_433_mqtt_relay.py too.
https://eclipse.dev/paho/files/paho.mqtt.python/html/migrations.html has upgrading directions.
We fixed this at pbkhrv/rtl_433-hass-addons#180 by pinning the old version for now.
The text was updated successfully, but these errors were encountered: