From 133cf0be1eb2c8e8ef65bbce32a5a5fed8bd2398 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 21 Jan 2026 15:38:13 -1000 Subject: [PATCH] remove unnecessary duration_ms update on early return --- esphome/components/http_request/http_request_idf.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/esphome/components/http_request/http_request_idf.cpp b/esphome/components/http_request/http_request_idf.cpp index c1de226fef..d87a1e6b9b 100644 --- a/esphome/components/http_request/http_request_idf.cpp +++ b/esphome/components/http_request/http_request_idf.cpp @@ -231,7 +231,6 @@ int HttpContainerIDF::read(uint8_t *buf, size_t max_len) { // Check if we've already read all expected content if (this->bytes_read_ >= this->content_length) { - this->duration_ms += (millis() - start); return 0; // All content read successfully }