[fan] Return StringRef from get_preset_mode() for safety and modern API (#13092)

This commit is contained in:
J. Nick Koston
2026-01-11 17:40:09 -10:00
committed by GitHub
parent 45c0796e40
commit eeeae53f76
11 changed files with 113 additions and 32 deletions
+3
View File
@@ -7,6 +7,9 @@ fan:
- platform: speed
id: fan_speed
output: fan_output_1
preset_modes:
- Eco
- Turbo
- platform: copy
source_id: fan_speed
name: Fan Speed Copy