From a1f4cdc66b48e7ac46aa3d0d2fc56d71989b2beb Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 17 Sep 2025 14:04:56 +0200 Subject: [PATCH] Ensure audio_card is set for homeassistant_microphone --- birdnet-go/rootfs/etc/cont-init.d/99-run.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 c19b8725d..d4cbea279 100755 --- a/birdnet-go/rootfs/etc/cont-init.d/99-run.sh +++ b/birdnet-go/rootfs/etc/cont-init.d/99-run.sh @@ -11,9 +11,10 @@ echo " " # Check if alsa_card is provided CONFIG_LOCATION="/config/config.yaml" 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" + audio_card="default" else + bashio::log.warning "homeassistant_microphone option is not set, disabling microphone input" audio_card="" fi yq -iy ".realtime.audio.source = \"${audio_card}\"" "$CONFIG_LOCATION"