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