1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-28 21:48:16 +00:00

Update __init__.py

This commit is contained in:
Oliver Kleinecke 2025-02-06 17:36:53 +01:00 committed by GitHub
parent bcd11b98ee
commit 9e77f03191
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -52,5 +52,6 @@ async def to_code(config):
config[CONF_TERMINAL_W],
)
await output.register_output(var, config)
await cg.register_parented(var, config[CONF_MCP4461_ID])
if CONF_INITIAL_VALUE in config:
cg.add(var.set_initial_value(config[CONF_INITIAL_VALUE]))