mirror of
https://github.com/esphome/esphome.git
synced 2025-10-31 23:21:54 +00:00
[fan] fix initial FanCall to properly set speed (#8277)
This commit is contained in:
34
tests/integration/fixtures/host_mode_fan_preset.yaml
Normal file
34
tests/integration/fixtures/host_mode_fan_preset.yaml
Normal file
@@ -0,0 +1,34 @@
|
||||
esphome:
|
||||
name: host-test
|
||||
|
||||
host:
|
||||
|
||||
api:
|
||||
|
||||
logger:
|
||||
|
||||
# Test fan with preset modes and speed settings
|
||||
fan:
|
||||
- platform: template
|
||||
name: "Test Fan with Presets"
|
||||
id: test_fan_presets
|
||||
speed_count: 5
|
||||
preset_modes:
|
||||
- "Eco"
|
||||
- "Sleep"
|
||||
- "Turbo"
|
||||
has_oscillating: true
|
||||
has_direction: true
|
||||
|
||||
- platform: template
|
||||
name: "Test Fan Simple"
|
||||
id: test_fan_simple
|
||||
speed_count: 3
|
||||
has_oscillating: false
|
||||
has_direction: false
|
||||
|
||||
- platform: template
|
||||
name: "Test Fan No Speed"
|
||||
id: test_fan_no_speed
|
||||
has_oscillating: true
|
||||
has_direction: false
|
||||
Reference in New Issue
Block a user