This commit is contained in:
Hans Karlinius
2024-11-25 06:32:20 +01:00
parent 39d0b92493
commit f653188cc9
2 changed files with 5 additions and 2 deletions

View File

@@ -5,4 +5,7 @@ if bashio::config.has_value 'clientid'; then
fi
#TEST
bashio::addon.option 'usbdevices' { 'name': 'one', 'use': false}
#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[@]}"