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