test
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user