This commit is contained in:
Hans Karlinius
2024-11-28 16:55:58 +01:00
parent 62f3b9deea
commit ec62241e56
2 changed files with 4 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
name: VirtualHere Client
version: "0.1.168"
version: "0.1.169"
slug: vhclient
description: VirtualHere Client
arch:
@@ -48,7 +48,8 @@ schema:
clientid: str?
manualhub: str?
test:
- hej?: bool?
- usbdevice: str?
use: bool?
stage: experimental
init: false

View File

@@ -14,7 +14,7 @@ set -x
#bashio::config::update 'my_array' "${my_array[@]}"
options=$(bashio::addon.options)
new_options=$(echo $options | jq .test[gurka=false])
new_options=$(echo $options | jq .test[usbdevice=ONE, use=false])
payload=$(bashio::var.json options "^${new_options}")
bashio::api.supervisor POST "/addons/self/options" "${payload}"
curl -sH "Authorization: Bearer $SUPERVISOR_TOKEN" http://supervisor/addons/self/info | jq .data.options