mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-03 06:14:07 +02: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
|
if bashio::config.true "homeassistant_microphone"; then
|
||||||
audio_card="default"
|
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"
|
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
|
fi
|
||||||
|
yq -iy ".realtime.audio.source = \"${audio_card}\"" "$CONFIG_LOCATION"
|
||||||
|
|
||||||
########################
|
########################
|
||||||
# CONFIGURE birdnet-go #
|
# CONFIGURE birdnet-go #
|
||||||
|
|||||||
Reference in New Issue
Block a user