Files
home-assistant-addons/vhclient/rootfs/etc/s6-overlay/s6-rc.d/config/run
Hans Karlinius f653188cc9 test
2024-11-25 06:32:20 +01:00

12 lines
354 B
Plaintext
Executable File

#!/command/with-contenv bashio
if bashio::config.has_value 'clientid'; then
bashio::log.info "Set ClientId"
fi
#TEST
#bashio::addon.option 'usbdevices' { 'name': 'one', 'use': false}
my_array=($(bashio::config 'my_array'))
my_array+=({ 'name': 'one', 'use': false}) # Add a new item to the array
bashio::config::update 'my_array' "${my_array[@]}"