mirror of
https://github.com/esphome/esphome.git
synced 2026-09-02 02:56:01 +00: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
585 MiB
Languages
C++
56.1%
Python
43.3%
C
0.3%
JavaScript
0.2%
