mirror of
https://github.com/esphome/esphome.git
synced 2026-09-17 18:18:43 +00:00
128259870ee1d033caffaf22613005824135a27b
Replace per-frame string comparison with Deduplicator<uint8_t> on the direction enum value. The previous code called get_state() and compared std::string against const char* on every frame for each target (~75 times/sec). The new approach does a single uint8_t comparison and only looks up the direction string and publishes when the direction actually changes. Also use MAX_TARGETS instead of hardcoded 3 for direction_text_sensors_ array size for consistency with all other sensor arrays.
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
598 MiB
Languages
C++
55.7%
Python
43.7%
C
0.3%
JavaScript
0.2%
