From c3da5b7a3f2376e297865f7cc130fa7bce5d44b9 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 16 Jul 2025 15:50:42 -1000 Subject: [PATCH] tell the bot --- esphome/components/web_server/ota/ota_web_server.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/esphome/components/web_server/ota/ota_web_server.cpp b/esphome/components/web_server/ota/ota_web_server.cpp index 3e566f14bf..966c1c1024 100644 --- a/esphome/components/web_server/ota/ota_web_server.cpp +++ b/esphome/components/web_server/ota/ota_web_server.cpp @@ -35,6 +35,7 @@ class OTARequestHandler : public AsyncWebHandler { #if defined(USE_WEBSERVER_OTA_DISABLED) && defined(USE_CAPTIVE_PORTAL) // IMPORTANT: USE_WEBSERVER_OTA_DISABLED only disables OTA for the web_server component // Captive portal can still perform OTA updates - check if request is from active captive portal + // Note: global_captive_portal is the standard way components communicate in ESPHome return is_ota_request && captive_portal::global_captive_portal != nullptr && captive_portal::global_captive_portal->is_active(); #elif defined(USE_WEBSERVER_OTA_DISABLED)