1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-31 15:12:06 +00:00
This commit is contained in:
J. Nick Koston
2025-10-30 21:12:27 -05:00
parent 5c99eabd1a
commit fae90194e7

View File

@@ -284,8 +284,7 @@ class ClimateTraits {
*
* Pointers must remain valid for the ClimateTraits lifetime. Safe patterns:
* - String literals: set_supported_custom_fan_modes({"Turbo", "Silent"})
* - Static data: static const char* MODE = "Eco";
* - Component members: Extract from long-lived std::map keys or member vectors
* - Static const data: static const char* MODE = "Eco";
*
* Climate class setters validate pointers are from these vectors before storing.
*/