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