mirror of
https://github.com/esphome/esphome.git
synced 2025-03-26 04:28:17 +00:00
Update __init__.py
This commit is contained in:
parent
4b4dea20fc
commit
419533b6af
@ -53,6 +53,6 @@ async def to_code(config):
|
||||
config[CONF_TERMINAL_W],
|
||||
)
|
||||
if CONF_INITIAL_VALUE in config:
|
||||
cg.add(parent.set_initial_value(config[CONF_INITIAL_VALUE]))
|
||||
cg.add(parent.set_initial_value(config[CONF_CHANNEL], config[CONF_INITIAL_VALUE]))
|
||||
await output.register_output(var, config)
|
||||
await cg.register_parented(var, config[CONF_MCP4461_ID])
|
||||
|
Loading…
x
Reference in New Issue
Block a user