mirror of
https://github.com/esphome/esphome.git
synced 2026-09-03 19:46:02 +00:00
[mdns] Revert defines.h USE_MDNS_EVENT_DRIVEN_POLLING / USE_MDNS_WIFI_LISTENER adds
Copilot flagged that defining these unconditionally in defines.h breaks static analysis on platforms that don't meet the derivation's platform+listener guard: USE_MDNS_WIFI_LISTENER enables 'public wifi::WiFiIPStateListener' inheritance in the class declaration, but wifi_component.h is only #include'd inside the mdns_component.h derivation block. On analysis envs where the derivation guard is false (non-ESP8266/RP2040, or missing listener feature flags), the inherit fires without the header in scope, causing 'use of undeclared identifier' and related errors. Letting the derivation in mdns_component.h be the sole source of truth keeps the define and its corresponding include atomically linked.
This commit is contained in:
@@ -111,8 +111,6 @@
|
||||
#define MDNS_SERVICE_COUNT 3
|
||||
#define USE_MDNS_DYNAMIC_TXT
|
||||
#define MDNS_DYNAMIC_TXT_COUNT 2
|
||||
#define USE_MDNS_EVENT_DRIVEN_POLLING
|
||||
#define USE_MDNS_WIFI_LISTENER
|
||||
#define MICRONOVA_LISTENER_COUNT 1
|
||||
#define USE_MICRONOVA_WRITER
|
||||
#define SERIAL_PROXY_COUNT 2
|
||||
|
||||
Reference in New Issue
Block a user