J. Nick Koston
01e0cda3c0
[core] Combine entity register + configure_entity_ into one call
...
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.
2026-04-26 14:37:37 -05:00
Kamil Cukrowski
cd05462e9f
[core] Use placement new allocation for Pvariables ( #15079 )
...
Co-authored-by: J. Nick Koston <nick@home-assistant.io >
Co-authored-by: J. Nick Koston <nick@koston.org >
2026-03-22 14:42:04 -10:00
J. Nick Koston
d0285cdc41
[core] Pack entity flags into configure_entity_() and protect setters ( #14564 )
...
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-08 15:11:15 -10:00
J. Nick Koston
45f20d9c06
[core] Merge set_name + set_entity_strings into configure_entity_ ( #14444 )
...
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-07 07:26:01 -10:00
J. Nick Koston
9371159a7e
[core] Replace custom esphome::optional with std::optional ( #14368 )
...
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-04 01:14:05 +00:00
J. Nick Koston
3cc6810be5
[core] Remove object_id RAM storage - no longer in hot path after #12627 ( #12631 )
2026-01-02 15:46:01 -10:00
J. Nick Koston
b328758634
Revert "[core] Deduplicate identical stateless lambdas to reduce flash usage" ( #12117 )
2025-11-26 10:53:44 -06:00
J. Nick Koston
bda17180df
[core] Deduplicate identical stateless lambdas to reduce flash usage ( #11918 )
2025-11-26 12:48:08 +13:00
J. Nick Koston
cf8c205644
[core] Reduce flash size by combining set_name() and set_object_id() calls ( #11941 )
2025-11-25 12:15:45 -06:00
J. Nick Koston
3c18558003
Optimize stateless lambdas to use function pointers ( #11551 )
2025-10-28 08:06:22 +13:00
Jesse Hills
6d37b916dc
[logger] Don't allow `logger.log actions without configuring the logger` ( #9821 )
2025-07-26 16:23:36 +12:00
Clyde Stubbs
6486147da1
[mipi_spi] Template code, partial buffer support ( #9314 )
...
Co-authored-by: J. Nick Koston <nick@koston.org >
Co-authored-by: Keith Burzinski <kbx81x@gmail.com >
2025-07-16 11:05:27 +10:00
J. Nick Koston
bf161f1eaa
Resolve esphome::optional vs std::optional ambiguity in code generation ( #9119 )
2025-06-17 13:04:45 -05:00
Anton Sergunov
73bb4aa4d5
[template/text] Fix lambda config ( #6655 )
...
Co-authored-by: Clyde Stubbs <2366188+clydebarrow@users.noreply.github.com >
2024-04-29 20:40:03 +10:00
Daniel Dunn
e80bd8ed3d
Add text component ( #5336 )
...
Co-authored-by: Maurits <maurits@vloop.nl >
Co-authored-by: mauritskorse <mauritskorse@gmail.com >
Co-authored-by: Daniel Dunn <dannydunn@eternityforest.com >
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2023-10-25 22:00:32 +13:00