don't send shower MQTT if MQTT disabled

This commit is contained in:
Paul
2020-11-14 00:01:56 +01:00
parent 7d73efbd31
commit 4805fb6c46

View File

@@ -28,7 +28,9 @@ void Shower::start() {
shower_alert_ = settings.shower_alert;
});
if (Mqtt::enabled()) {
send_mqtt_stat(false); // send first MQTT publish
}
}
void Shower::loop() {