mirror of
https://github.com/esphome/esphome.git
synced 2026-09-02 19:16:06 +00:00
5cb258034bc8cc9b683954e1cbb4fe67435272d5
clang-tidy CI compiles the source with the esp8266-arduino-tidy env's raw build flags (-DUSE_ESP8266 only) without running the Python codegen that adds USE_WIFI_IP_STATE_LISTENERS. The previous guard assumed USE_WIFI_IP_STATE_LISTENERS would always be defined on ESP8266, so clang-tidy failed with 'no member named add_ip_state_listener in wifi::WiFiComponent'. Gate USE_MDNS_EVENT_DRIVEN_POLLING on USE_WIFI + USE_WIFI_IP_STATE_LISTENERS for both ESP8266 and RP2040. When either is absent, fall back to the pre-PR behaviour: set_interval(MDNS_UPDATE_INTERVAL_MS, MDNS.update) running forever. Python side already only requests the listener slot when WiFi is in the config, so real production builds on ESP8266 (which always have WiFi) continue to use the event-driven path — only the clang-tidy static-analysis build takes the fallback.
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++
56.1%
Python
43.3%
C
0.3%
JavaScript
0.2%
