mirror of
https://github.com/esphome/esphome.git
synced 2026-09-17 18:18:43 +00:00
01e0cda3c0a67510be1071225c26dcd08c3d95c9
Add 4-arg overloads to App.register_<entity>() that call configure_entity_() and push_back in a single function. Codegen defers App.register_<entity>(var) emission until finalize_entity_strings(), which then emits a single combined App.register_<entity>(var, name, hash, packed) call instead of the previous two-statement pair (App.register_X(var); var->configure_entity_(...)). Apollo R-PRO-1 (ESP32-S3 IDF, 122 components, 164 entities), same toolchain: text: -1248 bytes main.cpp: -164 lines No behavior change. configure_entity_ remains protected on EntityBase; the Application class is now a friend so the new overloads can call it.
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%
