Use Buttons instead of switches in midea example (#1845)

This commit is contained in:
Sergey Dudanov 2022-01-24 21:16:30 +04:00 committed by GitHub
parent 75c6a90c76
commit f7668ba215
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -252,17 +252,17 @@ component, as well as control the light of the LED display.
temperature: !lambda "return x;" temperature: !lambda "return x;"
beeper: false # Optional. Beep on update. beeper: false # Optional. Beep on update.
# template momentary switches for sending display control command and swing step actions # template buttons for sending display control command and swing step actions
switch: button:
- platform: template - platform: template
name: Display Toggle name: Display Toggle
icon: mdi:theme-light-dark icon: mdi:theme-light-dark
turn_on_action: on_press:
midea_ac.display_toggle: midea_ac.display_toggle:
- platform: template - platform: template
name: Swing Step name: Swing Step
icon: mdi:tailwind icon: mdi:tailwind
turn_on_action: on_press:
midea_ac.swing_step: midea_ac.swing_step: