From f7668ba2154b67b5dc957236bb5a85a3d7a0515d Mon Sep 17 00:00:00 2001 From: Sergey Dudanov Date: Mon, 24 Jan 2022 21:16:30 +0400 Subject: [PATCH] Use Buttons instead of switches in midea example (#1845) --- components/climate/midea.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/climate/midea.rst b/components/climate/midea.rst index 769d0a174..37d15bd77 100644 --- a/components/climate/midea.rst +++ b/components/climate/midea.rst @@ -252,17 +252,17 @@ component, as well as control the light of the LED display. temperature: !lambda "return x;" beeper: false # Optional. Beep on update. - # template momentary switches for sending display control command and swing step actions - switch: + # template buttons for sending display control command and swing step actions + button: - platform: template name: Display Toggle icon: mdi:theme-light-dark - turn_on_action: + on_press: midea_ac.display_toggle: - platform: template name: Swing Step icon: mdi:tailwind - turn_on_action: + on_press: midea_ac.swing_step: