This commit is contained in:
Hans Karlinius
2024-11-30 09:26:45 +01:00
parent a4fd6d6b18
commit 2183b4af5f
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -8,7 +8,7 @@ for device in "${devices[@]}"; do
if [ -z $options_usbdevices_device ]; then
bashio::log.info "Adding to config: ${device}"
options_updated=$(echo $options | jq --arg device "$device" '.usbdevices |= . + [{ device: ($device), use: false }]')
bashio::log.debug "Options updated: ${options_updated}"
bashio::log.info "Options updated: ${options_updated}"
options_payload=$(echo $options_updated | jq -r '. = { options: . }')
bashio::log.debug "Payload: ${options_payload}"
bashio::api.supervisor POST "/addons/self/options" $(echo $options_updated | jq -r '. = { options: . }')