mirror of
https://github.com/esphome/esphome.git
synced 2026-09-16 01:28:39 +00:00
5be5f1666222a622355e23de4a48b2af7692c02f
Two bugs fixed from Copilot review: 1. Dangling pointer on copy: deprecated setters stored data in an OwnedPresetModes struct on FanTraits. If the traits object was copied, the copy's pointer dangled. Fix: deprecated setters now heap-allocate (intentional leak). Pointer survives any copy. Remove the OwnedPresetModes wrapper entirely. 2. find_preset_mode_ / save_state_ only searched the Fan-owned vector, breaking external components using the deprecated traits setters. Fix: fall back to get_traits() when the entity vector is null.
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
596 MiB
Languages
C++
55.8%
Python
43.6%
C
0.3%
JavaScript
0.2%
