mirror of
https://github.com/esphome/esphome.git
synced 2026-09-16 17:48:40 +00:00
6938f2b40008c27328b3e4369ebb6d4f28bd3885
clang-tidy compiles mdns_esp8266.cpp / mdns_rp2040.cpp with only the tidy env's raw build flags, without the Python codegen defines (USE_WIFI_IP_STATE_LISTENERS, USE_ETHERNET_IP_STATE_LISTENERS, USE_MDNS_EVENT_DRIVEN_POLLING). Wrap all listener-specific code paths under USE_MDNS_EVENT_DRIVEN_POLLING so tidy sees a compilable translation unit with an empty setup() instead of unresolved members on WiFiComponent / MDNSComponent. Production builds always have the listener defines via the mdns Python to_code()'s wifi.request_wifi_ip_state_listener() / ethernet.request_ethernet_ip_state_listener() calls, so this is tidy-only dead code at runtime.
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
614 MiB
Languages
C++
55.8%
Python
43.6%
C
0.3%
JavaScript
0.2%
