mirror of
https://github.com/hassio-addons/bashio.git
synced 2025-05-06 20:11:24 +00:00
🔨 Re-branding of the Supervisor API (#16)
* 🔨 Re-branding of the Supervisor API * 🚑 Fix typo in the supervisor token
This commit is contained in:
parent
5c7f2914cd
commit
a4b2a4cc1a
15 changed files with 196 additions and 196 deletions
|
@ -27,7 +27,7 @@ function bashio::services() {
|
|||
if bashio::cache.exists "${cache_key}"; then
|
||||
config=$(bashio::cache.get "${cache_key}")
|
||||
else
|
||||
config=$(bashio::api.hassio GET "/services/${service}" false)
|
||||
config=$(bashio::api.supervisor GET "/services/${service}" false)
|
||||
bashio::cache.set "${cache_key}" "${config}"
|
||||
fi
|
||||
|
||||
|
@ -78,7 +78,7 @@ function bashio::services.publish() {
|
|||
|
||||
bashio::log.trace "${FUNCNAME[0]}:" "$@"
|
||||
|
||||
bashio::api.hassio "POST" "/services/${service}" "${config}"
|
||||
bashio::api.supervisor "POST" "/services/${service}" "${config}"
|
||||
bashio::cache.flush_all
|
||||
}
|
||||
|
||||
|
@ -92,6 +92,6 @@ function bashio::services.delete() {
|
|||
local service=${1}
|
||||
|
||||
bashio::log.trace "${FUNCNAME[0]}:" "$@"
|
||||
bashio::api.hassio "DELETE" "/services/${service}"
|
||||
bashio::api.supervisor "DELETE" "/services/${service}"
|
||||
bashio::cache.flush_all
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue