Update use device on/off

This commit is contained in:
Hans Karlinius
2025-06-06 22:24:32 +02:00
parent d05ee112e2
commit b549cc7dc8

View File

@@ -27,7 +27,7 @@ if bashio::config.has_value 'usbdevices'; then
#deviceid2="${server_serial}.${device2}"
bashio::log.info "GURKA-${inuse_devices[@]}"
if [[ "${inuse_devices[@]}" =~ "${device}" ]]; then
if [[ "${inuse_devices[@]}" =~ ".*${device}.*" ]]; then
if $use; then
bashio::log.info "AUTO USE DEVICE,${deviceid} - already in use"
else