mirror of
https://github.com/esphome/esphome.git
synced 2026-07-10 17:05:36 +00:00
0cebb9014f7286e512b964fb9d678d2fa7d0c94c
Parameterize ToggleAction on a HasTransitionLength bool, mirroring the IfAction<HasElse> pattern. When transition_length is not configured in YAML, the TemplatableFn field is elided via [[no_unique_address]] and LightCall::set_transition_length is skipped via if constexpr. Saves 4 bytes RAM per toggle action instance and shrinks play() from 79 to 28 bytes when transition_length is unused.
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
546 MiB
Languages
C++
60.1%
Python
39.3%
C
0.3%
JavaScript
0.2%
