This commit is contained in:
Hans Karlinius
2024-11-25 07:49:55 +01:00
parent 43d1266041
commit 2b85ae2c61
2 changed files with 9 additions and 5 deletions

View File

@@ -6,7 +6,7 @@ fi
#TEST
#bashio::addon.option 'usbdevices' { 'name': 'one', 'use': false}
my_array=($(bashio::config 'my_array'))
my_array+=('one') # Add a new item to the array
#my_array=($(bashio::config 'my_array'))
#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 'my_array' "${my_array[@]}"
#bashio::config::update 'my_array' "${my_array[@]}"