From 419533b6af8f36bc0767a9be61c534e46c39891f Mon Sep 17 00:00:00 2001 From: Oliver Kleinecke Date: Fri, 7 Feb 2025 17:32:18 +0100 Subject: [PATCH] Update __init__.py --- esphome/components/mcp4461/output/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/mcp4461/output/__init__.py b/esphome/components/mcp4461/output/__init__.py index db7ef2dbaa..68fc11577c 100644 --- a/esphome/components/mcp4461/output/__init__.py +++ b/esphome/components/mcp4461/output/__init__.py @@ -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])