mirror of
https://github.com/esphome/esphome.git
synced 2026-09-02 11:06:04 +00:00
c74931aecb6d4bd9b2bfade15c619c67622eb27d
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.
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme
Multiple Licenses
605 MiB
Languages
C++
56.1%
Python
43.3%
C
0.3%
JavaScript
0.2%
