Fix bug to undefined method in jq.has_value (#77)

* Fix bug to undefined method in jq.has_value

* Address shellcheck lint warning
This commit is contained in:
Franck Nijhof 2021-05-27 16:56:06 +02:00 committed by GitHub
parent 74411cbd1c
commit 2bdf165666
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

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