Skip to content

Commit

Permalink
Fix bug to undefined method in jq.has_value (#77)
Browse files Browse the repository at this point in the history
* Fix bug to undefined method in jq.has_value

* Address shellcheck lint warning
  • Loading branch information
frenck committed May 27, 2021
1 parent 74411cb commit 2bdf165
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/bashio.sh
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion lib/jq.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2bdf165

Please sign in to comment.