avoid printing of the MQTT config inkl. password

This commit is contained in:
Stefan Allius
2025-05-31 19:25:07 +02:00
parent 75a95b7916
commit 67c1f5e71a

View File

@@ -6,7 +6,7 @@ echo "run.sh: info: check for Home Assistant supervisor API"
MQTT_HOST=""
if bashio::supervisor.ping; then
echo "run.sh: info: check for Home Assistant MQTT"
if bashio::services mqtt; then
if bashio::services mqtt "host"; then
MQTT_HOST=$(bashio::services mqtt "host")
MQTT_PORT=$(bashio::services mqtt "port")
MQTT_USER=$(bashio::services mqtt "username")
@@ -22,6 +22,7 @@ fi
if [ -z "$MQTT_HOST" ]; then
echo "run.sh: info: MQTT configuration not found"
else
echo ""
echo "run.sh: info: MQTT found"
export MQTT_HOST
export MQTT_PORT