From e0d4361875969eb7fba1b46c154b722cd2040d64 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Mon, 30 Jun 2025 09:53:54 +1200 Subject: [PATCH] Update esphome/components/gpio/binary_sensor/__init__.py --- esphome/components/gpio/binary_sensor/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/gpio/binary_sensor/__init__.py b/esphome/components/gpio/binary_sensor/__init__.py index ddcb1c31fb..9f50fd779a 100644 --- a/esphome/components/gpio/binary_sensor/__init__.py +++ b/esphome/components/gpio/binary_sensor/__init__.py @@ -43,4 +43,4 @@ async def to_code(config): cg.add(var.set_use_interrupt(config[CONF_USE_INTERRUPT])) if config[CONF_USE_INTERRUPT]: - cg.add(var.set_interrupt_type(INTERRUPT_TYPES[config[CONF_INTERRUPT_TYPE]])) + cg.add(var.set_interrupt_type(config[CONF_INTERRUPT_TYPE]))