mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-20 11:38:10 +01:00
Merge pull request #2278 from alexbelgium/codex/review-issue-#1808-for-closure-or-fix
Fix Birdnet-Go microphone selection override
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
- Added support for configuring extra environment variables via the `env_vars` add-on option alongside config.yaml. See https://github.com/alexbelgium/hassio-addons/wiki/Add-Environment-variables-to-your-Addon-2 for details.
|
||||
|
||||
- Preserve the microphone selected in the BirdNET-Go UI unless the `homeassistant_microphone` option explicitly forces the default device.
|
||||
|
||||
## "nightly-20251028" (01-11-2025)
|
||||
- Minor bugs fixed
|
||||
|
||||
|
||||
@@ -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 #
|
||||
|
||||
Reference in New Issue
Block a user