diff --git a/lib/hardware.sh b/lib/hardware.sh index 3ed912f..6df6c4d 100644 --- a/lib/hardware.sh +++ b/lib/hardware.sh @@ -77,6 +77,14 @@ function bashio::hardware.gpio() { bashio::hardware 'hardware.info.gpio' '.gpio[]' } +# ------------------------------------------------------------------------------ +# Returns a list of available USB devices on the host system. +# ------------------------------------------------------------------------------ +function bashio::hardware.usb() { + bashio::log.trace "${FUNCNAME[0]}" + bashio::hardware 'hardware.info.usb' '.usb[]' +} + # ------------------------------------------------------------------------------ # Trigger udev device notifications from the host system. # ------------------------------------------------------------------------------