From cdf3ed07bafbf18024ca62c905770d00d664d507 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 15 May 2025 03:47:10 -0500 Subject: [PATCH] dry --- esphome/components/api/api_frame_helper.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/esphome/components/api/api_frame_helper.cpp b/esphome/components/api/api_frame_helper.cpp index 2d9bed2174..71b3409c78 100644 --- a/esphome/components/api/api_frame_helper.cpp +++ b/esphome/components/api/api_frame_helper.cpp @@ -155,10 +155,9 @@ APIError APIFrameHelper::write_raw_(const struct iovec *iov, int iovcnt) { } this->tx_buf_.push_back(std::move(buffer)); - return APIError::OK; // Success, remaining data buffered } - return APIError::OK; // Success, all data sent + return APIError::OK; // Success, all data sent or buffered } // Common implementation for trying to send buffered data