From 37d4bbb72f81936d006ad19e7629027e6a8691ea Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 10 Oct 2026 13:09:32 -1000 Subject: [PATCH] Brace the UDP decline log --- esphome/components/esphome/ota/ota_esphome.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esphome/components/esphome/ota/ota_esphome.cpp b/esphome/components/esphome/ota/ota_esphome.cpp index dd32b689627..df2aa4ee37a 100644 --- a/esphome/components/esphome/ota/ota_esphome.cpp +++ b/esphome/components/esphome/ota/ota_esphome.cpp @@ -534,8 +534,9 @@ void ESPHomeOTAComponent::handle_data_() { // 1 is this UDP format; other values are free for later ones, which we decline (a zero reply keeps TCP) if (buf[0] == UDP_REQUEST_V1) { this->udp_open_(udp_link); - if (udp_link.reply[0] == 0) + if (udp_link.reply[0] == 0) { ESP_LOGW(TAG, "UDP unavailable, using TCP"); + } } if (!this->data_write_(udp_link.reply, sizeof(udp_link.reply))) goto error; // NOLINT(cppcoreguidelines-avoid-goto)