mirror of
https://github.com/hassio-addons/addon-debian-base.git
synced 2025-05-07 12:41:31 +00:00
⚡ Rename Hassio API token (#3)
* Rename token
* 🚑 Fixes the env key on another place
This commit is contained in:
parent
8a0340b54d
commit
846bdc943b
1 changed files with 2 additions and 2 deletions
|
@ -53,8 +53,8 @@ hass.api.call() {
|
|||
|
||||
hass.log.trace "${FUNCNAME[0]}" "$@"
|
||||
|
||||
if [[ ! -z "${API_TOKEN:-}" ]]; then
|
||||
auth_header="X-HASSIO-KEY: ${API_TOKEN}"
|
||||
if [[ ! -z "${HASSIO_TOKEN:-}" ]]; then
|
||||
auth_header="X-HASSIO-KEY: ${HASSIO_TOKEN}"
|
||||
fi
|
||||
|
||||
if ! response=$(curl --silent --show-error \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue