Send discovery message

This commit is contained in:
Andrew Jackson
2025-09-05 13:54:11 +01:00
parent 79c42795c1
commit e171eddc8c
2 changed files with 18 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
## v3.1.3 (05-09-2025)
- Send discovery message to Home Assistant
## v3.2.1 (20-09-2025)
- Update to latest version from mealie-recipes/mealie (changelog : https://github.com/mealie-recipes/mealie/releases)

View File

@@ -0,0 +1,16 @@
#!/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