This commit is contained in:
Hans Karlinius
2024-11-28 22:13:53 +01:00
parent 8283cf2da2
commit bfa47c8233
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
name: VirtualHere Client
version: "0.1.177"
version: "0.1.178"
slug: vhclient
description: VirtualHere Client
arch:

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[.test| length] |= . + { "field": "ONE", "value": "0" })
new_options=$(echo $options | jq '.test[.test| length] |= . + { "field": "ONE", "value": "0" }')
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