mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-09 17:31:03 +01:00
17 lines
394 B
Bash
Executable File
17 lines
394 B
Bash
Executable File
#!/usr/bin/env bashio
|
|
# shellcheck shell=bash
|
|
|
|
declare config
|
|
|
|
config=$(
|
|
bashio::var.json \
|
|
host "http://127.0.0.1" \
|
|
port "^$(bashio::addon.port 9001)"
|
|
)
|
|
|
|
if bashio::discovery "mealie" "${config}" > /dev/null; then
|
|
bashio::log.info "Successfully sent discovery information to Home Assistant."
|
|
else
|
|
bashio::log.error "Discovery message to Home Assistant failed!"
|
|
fi
|