mirror of
https://github.com/esphome/esphome.git
synced 2026-09-01 18:46:02 +00:00
130a01fd0afeb0f2568599d1691761103a2c3cb4
IfAction now takes a bool HasElse template parameter. When false (the common case — most if actions have no else branch), the else_ ActionList is replaced by an empty struct with [[no_unique_address]], saving 8 bytes per instance. The codegen already knows at generation time whether an else branch exists and passes the appropriate template argument.
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%
