Rename Hassio API token (#3)

* Rename token

* 🚑 Fixes the env key on another place
This commit is contained in:
Pascal Vizeli 2018-01-18 23:13:49 +01:00 committed by Franck Nijhof
parent 8a0340b54d
commit 846bdc943b

View file

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