mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-10-08 09:11:36 +02:00
Compare commits
4 Commits
40ee8f8e9e
...
0fe903874f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0fe903874f | ||
|
|
6af0ef33b7 | ||
|
|
b71ab0fe1d | ||
|
|
1b11a5a8dd |
@@ -1,3 +1,5 @@
|
||||
## 2025.11.04 (05-11-2025)
|
||||
- Minor bugs fixed
|
||||
## 2025.11.03 (04-11-2025)
|
||||
- Minor bugs fixed
|
||||
## 2025.11.02 (01-11-2025)
|
||||
|
||||
@@ -113,5 +113,5 @@ tmpfs: true
|
||||
udev: true
|
||||
url: https://github.com/alexbelgium/hassio-addons/tree/master/birdnet-pi
|
||||
usb: true
|
||||
version: 2025.11.03
|
||||
version: 2025.11.04
|
||||
video: true
|
||||
|
||||
@@ -113,7 +113,14 @@ def automatic_mqtt_publish(file, detection, path):
|
||||
log.info("Posted to MQTT: ok")
|
||||
|
||||
|
||||
mqttc = mqtt.Client("birdnet_mqtt", callback_api_version=4)
|
||||
# Create MQTT client using legacy callback API when available for
|
||||
# compatibility with paho-mqtt >= 2.0
|
||||
callback_api = getattr(mqtt, "CallbackAPIVersion", None)
|
||||
|
||||
if callback_api is not None:
|
||||
mqttc = mqtt.Client("birdnet_mqtt", callback_api_version=callback_api.VERSION1)
|
||||
else:
|
||||
mqttc = mqtt.Client("birdnet_mqtt")
|
||||
mqttc.username_pw_set(mqtt_user, mqtt_pass)
|
||||
mqttc.on_connect = on_connect
|
||||
|
||||
|
||||
Reference in New Issue
Block a user