[select][fan] Use StringRef for on_value/on_preset_set triggers to avoid heap allocation (#13324)

This commit is contained in:
J. Nick Koston
2026-01-18 19:51:11 -10:00
committed by GitHub
parent d8a28f6fba
commit 86a1b4cf69
9 changed files with 302 additions and 8 deletions
+1
View File
@@ -44,3 +44,4 @@ gpio_Flags = gpio_ns.enum("Flags", is_class=True)
EntityCategory = esphome_ns.enum("EntityCategory")
Parented = esphome_ns.class_("Parented")
ESPTime = esphome_ns.struct("ESPTime")
StringRef = esphome_ns.class_("StringRef")