mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-05-28 00:38:28 +02:00
Fixes
This commit is contained in:
@@ -24,6 +24,5 @@ def to_code(config):
|
||||
var = cg.variable(config[CONF_ID], rhs)
|
||||
|
||||
for i, conf in enumerate(config[CONF_TEXT_SENSORS]):
|
||||
text = cg.new_Pvariable(conf[CONF_ID], var.get_text_sensor(i))
|
||||
cg.add(text.set_name(conf[CONF_NAME]))
|
||||
text = cg.Pvariable(conf[CONF_ID], var.get_text_sensor(i))
|
||||
yield text_sensor.register_text_sensor(text, conf)
|
||||
|
||||
Reference in New Issue
Block a user