mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-05-19 04:33:27 +02:00
Fixes
This commit is contained in:
@@ -21,5 +21,4 @@ def to_code(config):
|
||||
var = cg.variable(config[CONF_ID], rhs)
|
||||
for i, conf in enumerate(config[CONF_SENSORS]):
|
||||
sens = cg.Pvariable(conf[CONF_ID], var.get_sensor(i))
|
||||
cg.add(sens.set_name(conf[CONF_NAME]))
|
||||
yield sensor.register_sensor(sens, conf)
|
||||
|
||||
Reference in New Issue
Block a user