Update esphome/components/gpio/binary_sensor/__init__.py

This commit is contained in:
Jesse Hills 2025-06-30 09:53:54 +12:00 committed by GitHub
parent dda81fbc2c
commit e0d4361875
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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]))