mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-03-03 16:00:29 +01:00
Update audio card configuration in 99-run.sh
Set audio card configuration based on Home Assistant option.
This commit is contained in:
@@ -13,8 +13,10 @@ 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"
|
||||
yq -iy ".realtime.audio.source = \"${audio_card}\"" "$CONFIG_LOCATION"
|
||||
else
|
||||
audio_card=""
|
||||
fi
|
||||
yq -iy ".realtime.audio.source = \"${audio_card}\"" "$CONFIG_LOCATION"
|
||||
|
||||
########################
|
||||
# CONFIGURE birdnet-go #
|
||||
|
||||
Reference in New Issue
Block a user