mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 10:21:02 +01:00
Merge pull request #2085 from andrew-codechimp/mealie-discovery
Add Mealie HA discovery message
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
## v3.2.2 (27-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)
|
||||
|
||||
16
mealie/rootfs/etc/cont-init.d/91-discovery.sh
Normal file
16
mealie/rootfs/etc/cont-init.d/91-discovery.sh
Normal 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
|
||||
Reference in New Issue
Block a user