mirror of
https://github.com/esphome/esphome.git
synced 2026-07-10 17:05:36 +00:00
0073d37bf93322df2ab5550fa0322384aaa20f39
Replace the inline optional<LightStateRTCState> (~44 bytes) with a function pointer callback (4 bytes) that populates the initial state during setup. The callback is a stateless lambda whose values live in flash as code, not in the LightState object. Saves ~40 bytes per LightState instance unconditionally — the optional reserved space for the struct even when initial_state was not configured (the common case).
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%
