Add usb property to hardware endpoint (#50)

This commit is contained in:
Franck Nijhof 2021-01-15 20:40:31 +01:00 committed by GitHub
parent f2013b461a
commit a3bb4d48ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.
# ------------------------------------------------------------------------------