From b5bf041f818195639b2b731a58c3fb1397b2b74c Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 17 Sep 2025 13:43:40 +0200 Subject: [PATCH] Update audio card configuration logic in 99-run.sh --- birdnet-go/rootfs/etc/cont-init.d/99-run.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/birdnet-go/rootfs/etc/cont-init.d/99-run.sh b/birdnet-go/rootfs/etc/cont-init.d/99-run.sh index 7a31ee793..7a6f0eba2 100755 --- a/birdnet-go/rootfs/etc/cont-init.d/99-run.sh +++ b/birdnet-go/rootfs/etc/cont-init.d/99-run.sh @@ -10,9 +10,9 @@ echo " " # Check if alsa_card is provided CONFIG_LOCATION="/config/config.yaml" -if bashio::config.has_value "audio_card"; then - audio_card=$(bashio::config 'audio_card') - bashio::log.info "Audio card set to ${audio_card} if you use an USB card. This overwrites your value already set in your config. Please use 'default' when possible, and set in the addon options to which this 'default' device is set" +if bashio::config.true "homeassistant_microphone"; then + audio_card="default" + bashio::log.info "homeassistant_microphone option is selected. The audio card config value is set to 'default'. Set in the addon options to which this is set" yq -iy ".realtime.audio.source = \"${audio_card}\"" "$CONFIG_LOCATION" fi