This commit is contained in:
Hans Karlinius
2024-11-30 20:08:30 +01:00
parent 37aa22d41d
commit 81c97da033
2 changed files with 7 additions and 3 deletions

View File

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

View File

@@ -13,8 +13,12 @@ if bashio::config.has_value 'usbdevices'; then
readarray -t usbdevices < <(echo "$usbdevices_json")
bashio::log.info "Devices: ${usbdevices}"
for usbdevice in "${usbdevices[@]}"; do
gurka=$(echo $usbdevice | jq '.device | tostring')
bashio::log.info "Set AUTO USE DEVICE for ${gurka}"
use=$(echo $usbdevice | jq '.use | tostring')
device=$(echo $usbdevice | jq '.device | tostring')
deviceid=$(echo $device | sed 's/.*(\(.*\))/\1/g')
bashio::log.info "Use: ${use}"
bashio::log.info "Set AUTO USE DEVICE for ${deviceid}"
# sed 's/.*(\(.*\))/\1/g'