From 8300e9ca879100630581dcfc0d2ebf201ca50004 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 5 Feb 2026 14:02:25 +0100 Subject: [PATCH] Update esphome/components/api/api_connection.cpp Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- esphome/components/api/api_connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/api/api_connection.cpp b/esphome/components/api/api_connection.cpp index c7b85477e1..cfaff74d09 100644 --- a/esphome/components/api/api_connection.cpp +++ b/esphome/components/api/api_connection.cpp @@ -1885,7 +1885,7 @@ void APIConnection::process_batch_() { this->prepare_first_message_buffer(shared_buf, header_padding, total_estimated_size); - // Fast path for single message - allocate exact size needed + // Fast path for single message - buffer already allocated above if (num_items == 1) { const auto &item = this->deferred_batch_[0]; // Let dispatch_message_ calculate size and encode if it fits