From 5e7b4c1e6c30622e9681d111af5dc39daf727660 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 16 Feb 2026 18:17:53 -0600 Subject: [PATCH] [http_request] Add comment explaining why start() calls perform() directly The no-collect-headers start() overload calls perform() directly instead of the vector start() overload to avoid ambiguity with the deprecated std::set overload. --- esphome/components/http_request/http_request.h | 1 + 1 file changed, 1 insertion(+) diff --git a/esphome/components/http_request/http_request.h b/esphome/components/http_request/http_request.h index cdf8cd910e..dacf691d38 100644 --- a/esphome/components/http_request/http_request.h +++ b/esphome/components/http_request/http_request.h @@ -353,6 +353,7 @@ class HttpRequestComponent : public Component { std::shared_ptr start(const std::string &url, const std::string &method, const std::string &body, const std::list
&request_headers) { + // Call perform() directly to avoid ambiguity with the std::set overload return this->perform(url, method, body, request_headers, {}); }