mirror of
https://github.com/esphome/esphome.git
synced 2025-06-18 22:35:40 +01:00
add_job
This commit is contained in:
esphomeyaml
@ -47,8 +47,7 @@ def to_code(config):
|
||||
yield
|
||||
touch_pad = TOUCH_PADS[config[CONF_PIN]]
|
||||
rhs = hub.make_touch_pad(config[CONF_NAME], touch_pad, config[CONF_THRESHOLD])
|
||||
for _ in binary_sensor.register_binary_sensor(rhs, config):
|
||||
yield
|
||||
binary_sensor.register_binary_sensor(rhs, config)
|
||||
|
||||
|
||||
BUILD_FLAGS = '-DUSE_ESP32_TOUCH_BINARY_SENSOR'
|
||||
|
Reference in New Issue
Block a user