I’m writing a new add-on and I’ve added a config option called delete-destination
that I check the state of with bashio::config.true
. This results in the error that I can’t figure out (unless a config option can’t have a -
?) and could use some help with
The Error
jq: error: destination/0 is not defined at <top-level>, line 1:
if (.delete-destination == null) then
jq: error: destination/0 is not defined at <top-level>, line 3:
elif (.delete-destination | type == "string") then
jq: error: destination/0 is not defined at <top-level>, line 4:
.delete-destination // empty
jq: error: destination/0 is not defined at <top-level>, line 5:
elif (.delete-destination | type == "boolean") then
jq: error: destination/0 is not defined at <top-level>, line 6:
.delete-destination // false
jq: error: destination/0 is not defined at <top-level>, line 7:
elif (.delete-destination | type == "array") then
jq: error: destination/0 is not defined at <top-level>, line 8:
if (.delete-destination == []) then
jq: error: destination/0 is not defined at <top-level>, line 11:
.delete-destination[]
jq: error: destination/0 is not defined at <top-level>, line 13:
elif (.delete-destination | type == "object") then
jq: error: destination/0 is not defined at <top-level>, line 14:
if (.delete-destination == {}) then
jq: error: destination/0 is not defined at <top-level>, line 17:
.delete-destination
jq: error: destination/0 is not defined at <top-level>, line 20:
.delete-destination
jq: 12 compile errors
More History
I previously had the config named mirror
and simply replaced mirror
with delete-destination
in both the bash script and config.yaml in both the options and schema but the add-on started throwing the error afterwards.
Link to Code
Repo (as of the time of writing): hassio-backup-azure-blob/azcopy at b7a4d4aef65a3b4f7aa135da7b8102c0eb8a94ca · jak119/hassio-backup-azure-blob · GitHub