MQTT URL Update

This commit is contained in:
tsightler
2022-04-18 11:46:17 -04:00
parent 07783ba734
commit 70c8c6fcf2

View File

@@ -53,7 +53,9 @@ if [ "${RUNMODE}" = "addon" ]; then
MQTTUSER=$(bashio::config "mqtt_user")
MQTTPASSWORD=$(bashio::config "mqtt_password")
if [ $MQTTURL = '<auto_detect>' ] || [ -z $MQTTURL ]; then
echo $MQTTURL
if [ ! -v MQTTURL ] || [ $MQTTURL = '<auto_detect>' ]; then
if [ $MQTTHOST = '<auto_detect>' ]; then
if bashio::services.available 'mqtt'; then
MQTTHOST=$(bashio::services mqtt "host")