From 8648acab5de2d64e0b9bb76949701787c63c3fb0 Mon Sep 17 00:00:00 2001 From: Kevin Ahrendt Date: Tue, 20 May 2025 13:54:45 +0000 Subject: [PATCH] remove old capacity() call --- esphome/components/json/json_util.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/esphome/components/json/json_util.cpp b/esphome/components/json/json_util.cpp index f5b662d543..a9c6821112 100644 --- a/esphome/components/json/json_util.cpp +++ b/esphome/components/json/json_util.cpp @@ -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;