Update use device on/off
This commit is contained in:
@@ -27,7 +27,8 @@ if bashio::config.has_value 'usbdevices'; then
|
|||||||
#deviceid2="${server_serial}.${device2}"
|
#deviceid2="${server_serial}.${device2}"
|
||||||
bashio::log.info "GURKA-${inuse_devices}"
|
bashio::log.info "GURKA-${inuse_devices}"
|
||||||
|
|
||||||
if [[ "${inuse_devices[@]}" =~ "$device" ]]; then
|
#if [[ "${inuse_devices[@]}" =~ "$device" ]]; then
|
||||||
|
if [[ -v $inuse_devices[$device] ]]
|
||||||
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