This commit is contained in:
Hans Karlinius
2024-11-28 07:46:07 +01:00
parent f133b1cc22
commit 12a6ad368e
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
name: VirtualHere Client name: VirtualHere Client
version: "0.1.164" version: "0.1.165"
slug: vhclient slug: vhclient
description: VirtualHere Client description: VirtualHere Client
arch: arch:
@@ -48,7 +48,7 @@ schema:
clientid: str? clientid: str?
manualhub: str? manualhub: str?
test: test:
- str? - bool?
stage: experimental stage: experimental
init: false init: false
@@ -14,7 +14,7 @@ set -x
#bashio::config::update 'my_array' "${my_array[@]}" #bashio::config::update 'my_array' "${my_array[@]}"
options=$(bashio::addon.options) options=$(bashio::addon.options)
new_options=$(echo $options | jq .gurka=false) new_options=$(echo $options | jq .test.gurka=false)
payload=$(bashio::var.json options "^${new_options}") payload=$(bashio::var.json options "^${new_options}")
bashio::api.supervisor POST "/addons/self/options" "${payload}" bashio::api.supervisor POST "/addons/self/options" "${payload}"
curl -sH "Authorization: Bearer $SUPERVISOR_TOKEN" http://supervisor/addons/self/info | jq .data.options curl -sH "Authorization: Bearer $SUPERVISOR_TOKEN" http://supervisor/addons/self/info | jq .data.options