mirror of
https://github.com/esphome/esphome.git
synced 2025-09-22 13:12:22 +01:00
add_job
This commit is contained in:
@@ -61,8 +61,7 @@ def to_code(config):
|
||||
mux = MUX[config[CONF_MULTIPLEXER]]
|
||||
gain = GAIN[config[CONF_GAIN]]
|
||||
rhs = hub.get_sensor(config[CONF_NAME], mux, gain, config.get(CONF_UPDATE_INTERVAL))
|
||||
for _ in sensor.register_sensor(rhs, config):
|
||||
yield
|
||||
sensor.register_sensor(rhs, config)
|
||||
|
||||
|
||||
BUILD_FLAGS = '-DUSE_ADS1115_SENSOR'
|
||||
|
Reference in New Issue
Block a user