bump to next test verion

This commit is contained in:
Stefan Allius
2025-05-31 18:22:55 +02:00
parent 4c4c4e4243
commit d326a9e57d
2 changed files with 11 additions and 6 deletions

View File

@@ -2,11 +2,16 @@
echo "Add-on environment started"
bashio::cache.flush_all
echo "check for Home Assistant MQTT"
MQTT_HOST=$(bashio::services mqtt "host")
MQTT_PORT=$(bashio::services mqtt "port")
MQTT_USER=$(bashio::services mqtt "username")
MQTT_PASSWORD=$(bashio::services mqtt "password")
echo "check for Home Assistant supervisor API"
if bashio::supervisor.ping; then
echo "check for Home Assistant MQTT"
MQTT_HOST=$(bashio::services mqtt "host")
MQTT_PORT=$(bashio::services mqtt "port")
MQTT_USER=$(bashio::services mqtt "username")
MQTT_PASSWORD=$(bashio::services mqtt "password")
else
echo "error Home Assistant supervisor API not available!"
fi
# if a MQTT was/not found, drop a note
if [ -z "$MQTT_HOST" ]; then