mirror of
https://github.com/esphome/esphome.git
synced 2026-09-15 17:18:40 +00:00
f43a598a83f9dc318b4b2fa7503215ef4ac8f174
Replace five separate boolean state variables in the ESP8266 WiFi implementation with a single enum state machine, matching the pattern already used by LibreTiny. This eliminates the per-loop call to wifi_station_get_connect_status() by reading cached state from the existing event callback instead. Also use the cached connected_ field (set unconditionally at the top of loop()) in the STA_CONNECTED branch instead of calling is_connected_() a second time. This applies to all platforms.
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
597 MiB
Languages
C++
55.8%
Python
43.6%
C
0.3%
JavaScript
0.2%
