Cleanup Supervisor service discovery (#73)

This commit is contained in:
Franck Nijhof 2021-01-25 19:29:56 +01:00 committed by GitHub
parent 554a152a34
commit 7b9b33b7f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,18 +0,0 @@
#!/usr/bin/with-contenv bashio
# ==============================================================================
# Home Assistant Community Add-on: Home Panel
# Sends discovery information to Home Assistant.
# ==============================================================================
declare config
config=$(\
bashio::var.json \
host "127.0.0.1" \
port "^45158" \
)
if bashio::discovery "home_panel" "${config}" > /dev/null; then
bashio::log.info "Successfully send discovery information to Home Assistant."
else
bashio::log.error "Discovery message to Home Assistant failed!"
fi