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()); }