From 3c305d5009eb57f418c2a17301e4d8b44c894d46 Mon Sep 17 00:00:00 2001 From: proddy Date: Mon, 5 Oct 2020 16:58:57 +0200 Subject: [PATCH] remove empty publish in comments --- src/devices/thermostat.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/devices/thermostat.cpp b/src/devices/thermostat.cpp index 33a4b75ed..e0e8b693a 100644 --- a/src/devices/thermostat.cpp +++ b/src/devices/thermostat.cpp @@ -777,7 +777,6 @@ void Thermostat::register_mqtt_ha_config(uint8_t hc_num) { std::string topic(100, '\0'); snprintf_P(&topic[0], topic.capacity() + 1, PSTR("homeassistant/climate/ems-esp/thermostat_hc%d/config"), hc_num); - // Mqtt::publish(topic); // empty payload, this remove any previous config sent to HA Mqtt::publish_retain(topic, doc.as(), true); // publish the config payload with retain flag // enable the thermostat topic to take both mode strings and floats