From 61828612970042db2a663686d52f2effd8af1be1 Mon Sep 17 00:00:00 2001 From: Jordan Zucker Date: Mon, 18 Nov 2024 09:46:31 -0800 Subject: [PATCH] And now this seems better --- esphome/components/vornado_ir/button/__init__.py | 6 +++--- tests/components/vornado_ir/common.yaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/esphome/components/vornado_ir/button/__init__.py b/esphome/components/vornado_ir/button/__init__.py index d420658d6f..67f2ad2e65 100644 --- a/esphome/components/vornado_ir/button/__init__.py +++ b/esphome/components/vornado_ir/button/__init__.py @@ -11,7 +11,7 @@ IncreaseButton = vornado_ir_ns.class_("IncreaseButton", button.Button) DecreaseButton = vornado_ir_ns.class_("DecreaseButton", button.Button) # Vornado IR buttons -CONF_POWER = "power" +CONF_POWER_TOGGLE = "power_toggle" CONF_CHANGE_DIRECTION = "change_direction" CONF_INCREASE = "increase" CONF_DECREASE = "decrease" @@ -25,7 +25,7 @@ ICON_DECREASE = "mdi:fan-minus" CONFIG_SCHEMA = cv.Schema( { cv.GenerateID(CONF_VORNADO_ID): cv.use_id(VornadoIR), - cv.Optional(CONF_POWER): button.button_schema( + cv.Optional(CONF_POWER_TOGGLE): button.button_schema( PowerButton, icon=ICON_POWER_TOGGLE, ), @@ -47,7 +47,7 @@ CONFIG_SCHEMA = cv.Schema( async def to_code(config): for button_type in [ - CONF_POWER, + CONF_POWER_TOGGLE, CONF_CHANGE_DIRECTION, CONF_INCREASE, CONF_DECREASE, diff --git a/tests/components/vornado_ir/common.yaml b/tests/components/vornado_ir/common.yaml index 030aabd3f2..a134a29f9b 100644 --- a/tests/components/vornado_ir/common.yaml +++ b/tests/components/vornado_ir/common.yaml @@ -8,7 +8,7 @@ vornado_ir: button: - platform: vornado_ir vornado_id: vornado_ir_remote - power: + power_toggle: name: Vornado IR Power Toggle change_direction: name: Vornado IR Change Direction