This commit is contained in:
Hans Karlinius
2024-11-26 07:06:56 +01:00
parent 254fc35063
commit 31b68fc7c5
2 changed files with 5 additions and 5 deletions

View File

@@ -6,10 +6,10 @@ fi
#TEST
#bashio::addon.option 'usbdevices' { 'name': 'one', 'use': false}
my_array=($(bashio::config 'usbdevices'))
my_array+=('one') # Add a new item to the array
#my_array=($(bashio::config 'usbdevices'))
#my_array+=('one') # Add a new item to the array
#my_array+=({ 'name': 'one', 'use': false}) # Add a new item to the array
#bashio::config::update 'usbdevices' "${my_array[@]}"
bashio::log.info "${my_array[@]}"
bashio::config::update 'usbdevices' "${my_array[@]}"
#bashio::log.info "${my_array[@]}"
#bashio::config::update 'usbdevices' "${my_array[@]}"
#bashio::log.info "${my_array[@]}"