mirror of
https://github.com/esphome/esphome.git
synced 2026-03-27 10:41:32 +08:00
349f45f582e1f7bb7da963db19f89dd589383373
set_new_state is a template method (~189 bytes when instantiated). Inlining callers like send_state_internal and invalidate_state causes the template code to be duplicated at every call site (publish_state, Filter::output, BinarySensorInvalidateAction::play, etc.), adding ~384 bytes of flash. Keep these as out-of-line definitions in the .cpp so the template is instantiated once.
…
…
…
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
632 MiB
Languages
C++
63.3%
Python
36.3%
C
0.3%
