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

@@ -1,5 +1,5 @@
name: VirtualHere Client
version: "0.1.53"
version: "0.1.54"
slug: vhclient
description: VirtualHere Client
arch:
@@ -32,7 +32,11 @@ kernel_modules: true
options:
clientid: "vhclient"
autofind: false
usbdevices: []
usbdevices:
- name: one
bool: false
- name: two
bool: false
schema:
clientid: str?
autofind: bool

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[@]}"