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
+6 -2
View File
@@ -1,5 +1,5 @@
name: VirtualHere Client name: VirtualHere Client
version: "0.1.53" version: "0.1.54"
slug: vhclient slug: vhclient
description: VirtualHere Client description: VirtualHere Client
arch: arch:
@@ -32,7 +32,11 @@ kernel_modules: true
options: options:
clientid: "vhclient" clientid: "vhclient"
autofind: false autofind: false
usbdevices: [] usbdevices:
- name: one
bool: false
- name: two
bool: false
schema: schema:
clientid: str? clientid: str?
autofind: bool autofind: bool
@@ -6,7 +6,7 @@ fi
#TEST #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=($(bashio::config 'my_array'))
my_array+=('one') # Add a new item to the array #my_array+=('one') # Add a new item to the array
#my_array+=({ 'name': 'one', 'use': false}) # 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[@]}"