Only if birdnet_analysis exists

This commit is contained in:
Alexandre
2025-03-21 08:41:27 +01:00
committed by GitHub
parent 56be1980dc
commit f392e8bdf8

View File

@@ -42,7 +42,7 @@ common_steps () {
}
# Check if MQTT service is available and not disabled
if bashio::services.available 'mqtt' && ! bashio::config.true 'MQTT_DISABLED'; then
if [[ -f "$HOME"/BirdNET-Pi/scripts/birdnet_analysis.py ]] && bashio::services.available 'mqtt' && ! bashio::config.true 'MQTT_DISABLED'; then
bashio::log.green "---"
bashio::log.blue "MQTT addon is active on your system! Birdnet-pi is now automatically configured to send its output to MQTT"
bashio::log.blue "MQTT user : $(bashio::services "mqtt" "username")"