Fix Birdnet-Go microphone selection override

This commit is contained in:
Alexandre
2025-12-17 17:09:06 +01:00
parent 7f5a932586
commit b82d8cddcd
2 changed files with 4 additions and 3 deletions

View File

@@ -13,11 +13,10 @@ CONFIG_LOCATION="/config/config.yaml"
if bashio::config.true "homeassistant_microphone"; then
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"
yq -iy ".realtime.audio.source = \"${audio_card}\"" "$CONFIG_LOCATION"
else
bashio::log.warning "homeassistant_microphone option is not set, disabling microphone input"
audio_card=""
bashio::log.info "homeassistant_microphone option is not set, keeping audio source configured via the UI"
fi
yq -iy ".realtime.audio.source = \"${audio_card}\"" "$CONFIG_LOCATION"
########################
# CONFIGURE birdnet-go #