Update use device on/off

This commit is contained in:
Hans Karlinius
2025-06-06 22:01:14 +02:00
parent c697aaf395
commit 21ed096df4

View File

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