This commit is contained in:
Hans Karlinius
2024-11-30 09:14:13 +01:00
parent 93af4256b8
commit 2b9e60c764
2 changed files with 4 additions and 4 deletions
+1 -2
View File
@@ -1,5 +1,5 @@
name: VirtualHere Client
version: "0.1.274"
version: "0.1.276"
slug: vhclient
description: VirtualHere Client
arch:
@@ -46,7 +46,6 @@ schema:
device: str?,
use: bool?
}]
log_level: list(trace|debug|info|notice|warning|error|fatal)?
stage: experimental
init: false
@@ -6,9 +6,10 @@ for device in "${devices[@]}"; do
if [ -z $(echo $options | jq --arg device "$device" '.usbdevices[] | select(.device == ($device))') ]; then
bashio::log.info "Adding to config: ${device}"
options_updated=$(echo $options | jq --arg device "$device" '.usbdevices |= . + [{ device: ($device), use: false }]')
bashio::log.info "Options updated: ${options_updated}"
bashio::log.debug "Options updated: ${options_updated}"
options_payload=$(echo $options_updated | jq -r '. = { options: . }')
bashio::log.info "Payload: ${options_payload}"
bashio::log.debug "Payload: ${options_payload}"
bashio::api.supervisor POST "/addons/self/options" $(echo $options_updated | jq -r '. = { options: . }')
fi
done
bashio::api.supervisor POST "/addons/reload"