Update use device on/off
This commit is contained in:
@@ -25,9 +25,9 @@ if bashio::config.has_value 'usbdevices'; then
|
|||||||
#server_serial=$(/usr/bin/vh_server_serial_number ${deviceid%.*})
|
#server_serial=$(/usr/bin/vh_server_serial_number ${deviceid%.*})
|
||||||
#device2=$(/usr/bin/vh_usb_product_vendor $deviceid)
|
#device2=$(/usr/bin/vh_usb_product_vendor $deviceid)
|
||||||
#deviceid2="${server_serial}.${device2}"
|
#deviceid2="${server_serial}.${device2}"
|
||||||
bashio::log.info "GURKA-${inuse_device[@]}"
|
bashio::log.info "GURKA-${inuse_devices[@]}"
|
||||||
|
|
||||||
if [[ "${inuse_devices[@]}" =~ ".*${device}.*" ]]; then
|
if [[ "${inuse_devices[@]}" =~ "${device}" ]]; then
|
||||||
if $use; then
|
if $use; then
|
||||||
bashio::log.info "AUTO USE DEVICE,${deviceid} - already in use"
|
bashio::log.info "AUTO USE DEVICE,${deviceid} - already in use"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user