MQTT URL Fixes

This commit is contained in:
tsightler
2022-04-18 11:43:06 -04:00
parent 3a3c04030b
commit 07783ba734

View File

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