mirror of
https://github.com/esphome/esphome.git
synced 2025-09-21 20:52:20 +01:00
add_job
This commit is contained in:
@@ -45,8 +45,7 @@ def to_code(config):
|
||||
if CONF_RESOLUTION in config:
|
||||
resolution = RESOLUTIONS[config[CONF_RESOLUTION]]
|
||||
add(encoder.set_resolution(resolution))
|
||||
for _ in sensor.setup_sensor(encoder, make.Pmqtt, config):
|
||||
yield
|
||||
sensor.setup_sensor(encoder, make.Pmqtt, config)
|
||||
|
||||
|
||||
BUILD_FLAGS = '-DUSE_ROTARY_ENCODER_SENSOR'
|
||||
|
Reference in New Issue
Block a user