1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-01 17:42:22 +01:00

remove old capacity() call

This commit is contained in:
Kevin Ahrendt
2025-05-20 13:54:45 +00:00
parent 1155e9b88a
commit 8648acab5d

View File

@@ -44,8 +44,6 @@ std::string build_json(const json_build_t &f) {
request_size = std::min(request_size * 2, free_heap);
continue;
}
json_document.shrinkToFit();
ESP_LOGV(TAG, "Size after shrink %zu bytes", json_document.capacity());
std::string output;
serializeJson(json_document, output);
return output;