mirror of
https://github.com/esphome/esphome.git
synced 2025-08-06 18:37:47 +00:00
Update esphome/components/gpio/binary_sensor/__init__.py
This commit is contained in:
parent
dda81fbc2c
commit
e0d4361875
@ -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]))
|
||||
|
Loading…
x
Reference in New Issue
Block a user