mirror of
https://github.com/esphome/esphome.git
synced 2025-09-22 05:02:23 +01:00
add_job
This commit is contained in:
@@ -57,8 +57,7 @@ def to_code(config):
|
||||
add(pcnt.set_edge_mode(rising_edge, falling_edge))
|
||||
if CONF_INTERNAL_FILTER in config:
|
||||
add(pcnt.set_filter(config[CONF_INTERNAL_FILTER]))
|
||||
for _ in sensor.setup_sensor(make.Ppcnt, make.Pmqtt, config):
|
||||
yield
|
||||
sensor.setup_sensor(make.Ppcnt, make.Pmqtt, config)
|
||||
|
||||
|
||||
BUILD_FLAGS = '-DUSE_PULSE_COUNTER_SENSOR'
|
||||
|
Reference in New Issue
Block a user