From f5736303c31a314ac8825b8b7a83d2550c1be4ca Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 24 Nov 2025 15:36:31 -0600 Subject: [PATCH] fixs --- esphome/components/mdns/mdns_arduino.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/esphome/components/mdns/mdns_arduino.h b/esphome/components/mdns/mdns_arduino.h index 8d72c86f5c..e1292d201f 100644 --- a/esphome/components/mdns/mdns_arduino.h +++ b/esphome/components/mdns/mdns_arduino.h @@ -1,8 +1,8 @@ #pragma once -#include "esphome/core/defines.h" // Common Arduino mDNS registration for RP2040 and LibreTiny -#if defined(USE_MDNS) && (defined(USE_RP2040) || defined(USE_LIBRETINY)) +// NOTE: The platform's mDNS header (e.g., or ) must be +// included BEFORE this header to make the MDNS global available. #include "esphome/core/application.h" #include "mdns_component.h" @@ -38,5 +38,3 @@ inline void register_arduino_mdns(MDNSComponent *, StaticVector