mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-30 20:34:04 +02:00
correct
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
if bashio::config.true 'mqtt_autodiscover'; then
|
if bashio::config.true 'mqtt_autodiscover'; then
|
||||||
bashio::log.info "mqtt_autodiscover is defined in options, attemption autodiscovery..."
|
bashio::log.info "mqtt_autodiscover is defined in options, attemption autodiscovery..."
|
||||||
# Check if available
|
# Check if available
|
||||||
[ ! bashio::services.available "mqtt" ] && bashio::exit.nok "No internal MQTT service found. Please install Mosquitto broker"
|
[[ ! bashio::services.available "mqtt" ]] && bashio::exit.nok "No internal MQTT service found. Please install Mosquitto broker"
|
||||||
# Get variables
|
# Get variables
|
||||||
bashio::log.info "... MQTT service found, fetching server detail ..."
|
bashio::log.info "... MQTT service found, fetching server detail ..."
|
||||||
export MQTT_HOST=$(bashio::services mqtt "host")
|
export MQTT_HOST=$(bashio::services mqtt "host")
|
||||||
|
|||||||
Reference in New Issue
Block a user