Skip to content

Commit

Permalink
Add new add-on options from Supervisor 2021.2 (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Feb 16, 2021
1 parent bdae87f commit 20c83f1
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions lib/addons.sh
Original file line number Diff line number Diff line change
Expand Up @@ -732,10 +732,22 @@ function bashio::addon.udev() {
# Arguments:
# $1 Add-on slug (optional, default: self)
# ------------------------------------------------------------------------------
function bashio::addon.auto_uart() {
function bashio::addon.uart() {
local slug=${1:-'self'}
bashio::log.trace "${FUNCNAME[0]}" "$@"
bashio::addons "${slug}" "addons.${slug}.auto_uart" '.auto_uart // false'
bashio::addons "${slug}" "addons.${slug}.uart" '.uart // false'
}

# ------------------------------------------------------------------------------
# Returns if USB was made available to the add-on.
#
# Arguments:
# $1 Add-on slug (optional, default: self)
# ------------------------------------------------------------------------------
function bashio::addon.usb() {
local slug=${1:-'self'}
bashio::log.trace "${FUNCNAME[0]}" "$@"
bashio::addons "${slug}" "addons.${slug}.usb" '.usb // false'
}

# ------------------------------------------------------------------------------
Expand Down

0 comments on commit 20c83f1

Please sign in to comment.