mirror of
https://github.com/esphome/esphome.git
synced 2026-09-13 00:07:32 +00:00
4ff0d30e076d8b4c1a886e7e4ee0b04a26969abb
Fan entities live for the entire program lifetime, so the preset modes vector never needs to be freed. Use a raw pointer (null by default, allocated on first set_supported_preset_modes() call) instead of an inline std::vector member. This saves 24 bytes of RAM per Fan instance for components that don't use preset modes (binary, bedjet, tuya, etc.).
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
592 MiB
Languages
C++
55.8%
Python
43.6%
C
0.3%
JavaScript
0.2%
