From 06285dbb75a04edfd273d756e7efa26b41d00a37 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 10 Apr 2026 15:43:10 -1000 Subject: [PATCH] [esphome.ota] Comment host wake path as currently dead code --- esphome/core/application.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/esphome/core/application.cpp b/esphome/core/application.cpp index 9311b9fbf0..5fc794d1f6 100644 --- a/esphome/core/application.cpp +++ b/esphome/core/application.cpp @@ -563,8 +563,10 @@ void Application::yield_with_select_(uint32_t delay_ms) { // ret == 0: timeout occurred - normal and expected if (ret >= 0) [[likely]] { #ifdef USE_OTA - // A socket is ready; re-enable the OTA component loop if it disabled itself while idle. - // The wake is a no-op if OTA didn't register or is already active. + // Dead code today — host does not currently support the esphome OTA platform, + // so ota_wake_component_ is never set and this call is a no-op. Kept so the + // wake path works out of the box if host ever gains OTA support. Harmless + // cost: a single nullptr check per select() return. if (ret > 0) { this->wake_ota_component_any_context(); }