We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9697f9c commit 6d5d0e5Copy full SHA for 6d5d0e5
common/rootfs/docker-entrypoint.sh
@@ -89,7 +89,7 @@ function export_config() {
89
export_config 'mqtt'
90
export_config 'serial'
91
92
-if bashio::config.is_empty 'mqtt' && bashio::var.has_value "$(bashio::services 'mqtt')"; then
+if (bashio::config.is_empty 'mqtt' || ! (bashio::config.has_value 'mqtt.server' || bashio::config.has_value 'mqtt.user' || bashio::config.has_value 'mqtt.password')) && bashio::var.has_value "$(bashio::services 'mqtt')"; then
93
if bashio::var.true "$(bashio::services 'mqtt' 'ssl')"; then
94
export ZIGBEE2MQTT_CONFIG_MQTT_SERVER="mqtts://$(bashio::services 'mqtt' 'host'):$(bashio::services 'mqtt' 'port')"
95
else
0 commit comments