This commit is contained in:
Hans Karlinius
2024-11-28 06:10:19 +01:00
parent 0082aee563
commit ead21f96c1
2 changed files with 11 additions and 2 deletions

View File

@@ -1,3 +1,12 @@
#!/command/with-contenv bashio
($(bashio::config 'test')) += 'gurka'
test=($(bashio::config 'test'))
test += ('gurka')
bashio::config::update 'test' "${test[@]}"
#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+=({ 'name': 'one', 'use': false}) # Add a new item to the array
#bashio::config::update 'my_array' "${my_array[@]}"