From 7b84eb290332358925b4c74d0ed40aa3146bcd5d Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 15 May 2025 01:47:18 -0500 Subject: [PATCH] fixes --- esphome/components/api/api_frame_helper.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/esphome/components/api/api_frame_helper.cpp b/esphome/components/api/api_frame_helper.cpp index 23eccecaef..2566d14794 100644 --- a/esphome/components/api/api_frame_helper.cpp +++ b/esphome/components/api/api_frame_helper.cpp @@ -94,6 +94,7 @@ APIError APIFrameHelper::write_raw_(const struct iovec *iov, int iovcnt) { if (sent == -1) { if (errno == EWOULDBLOCK || errno == EAGAIN) { // Socket would block, we'll try again later + return APIError::OK; // Return early, buffer remains for next attempt } else { ESP_LOGVV(TAG, "%s: Socket write failed with errno %d", this->info_.c_str(), errno); this->state_ = State::FAILED;