1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 06:33:51 +00:00

[fan] Use FixedVector for preset modes, preserve config order (breaking)

This commit is contained in:
J. Nick Koston
2025-10-22 11:03:32 -10:00
parent 1c67a61945
commit f559fad4fc
13 changed files with 70 additions and 38 deletions

View File

@@ -0,0 +1,11 @@
fan:
- platform: template
id: test_fan
name: "Test Fan"
preset_modes:
- Eco
- Sleep
- Turbo
has_oscillating: true
has_direction: true
speed_count: 3

View File

@@ -0,0 +1 @@
<<: !include common.yaml