mirror of
https://github.com/esphome/esphome.git
synced 2026-07-10 08:55:36 +00:00
9bf013352548bebeee39b66403bfbd137d7ee928
Specialize TemplatableValue so non-string types use function-pointer-only storage (4 bytes on 32-bit) instead of the tagged union with std::function support (8 bytes). The std::string specialization retains full support for VALUE, STATIC_STRING, FLASH_STRING, and stateful lambdas. Codegen now wraps non-string constants in stateless lambdas automatically, so the generated C++ always assigns a function pointer.
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
545 MiB
Languages
C++
60.1%
Python
39.3%
C
0.3%
JavaScript
0.2%
