diff --git a/lib/bashio.sh b/lib/bashio.sh index 1f31dd5..f4f638b 100644 --- a/lib/bashio.sh +++ b/lib/bashio.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -# shellcheck disable=SC2034 +# shellcheck disable=SC2034,SC2155 # ============================================================================== # Home Assistant Community Add-ons: Bashio # Bashio is an bash function library for use with Home Assistant add-ons. diff --git a/lib/jq.sh b/lib/jq.sh index fe727b5..1c448be 100644 --- a/lib/jq.sh +++ b/lib/jq.sh @@ -64,7 +64,7 @@ function bashio::jq.has_value() { value=$(bashio::jq "${data}" \ "${filter} | if (. == {} or . == []) then empty else . end // empty") - if ! hass.has_value "${value}"; then + if ! bashio::var.has_value "${value}"; then return "${__BASHIO_EXIT_NOK}" fi