From e19566ecb800c3bfa8dacc073619cd87ac9804d7 Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 9 May 2021 10:59:28 +0200 Subject: [PATCH] comment change --- src/mqtt.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mqtt.cpp b/src/mqtt.cpp index 5b79faa7e..75b6e816e 100644 --- a/src/mqtt.cpp +++ b/src/mqtt.cpp @@ -649,7 +649,7 @@ void Mqtt::on_connect() { doc["ip"] = WiFi.localIP().toString(); } #endif - publish(F_(info), doc.as()); + publish(F_(info), doc.as()); // topic called "info" // create the EMS-ESP device in HA, which is MQTT retained if (ha_enabled()) { @@ -1026,7 +1026,6 @@ void Mqtt::publish_mqtt_ha_sensor(uint8_t type, // EMSdevice ids.add(ha_device); } - doc.shrinkToFit(); publish_ha(topic, doc.as()); }