diff --git a/esphome/components/mcp4461/output/__init__.py b/esphome/components/mcp4461/output/__init__.py index d095bdbe49..22b2b9a0c0 100644 --- a/esphome/components/mcp4461/output/__init__.py +++ b/esphome/components/mcp4461/output/__init__.py @@ -6,7 +6,9 @@ from .. import Mcp4461Component, CONF_MCP4461_ID, mcp4461_ns DEPENDENCIES = ["mcp4461"] -Mcp4461Wiper = mcp4461_ns.class_("Mcp4461Wiper", output.FloatOutput) +Mcp4461Wiper = mcp4461_ns.class_( + "Mcp4461Wiper", output.FloatOutput, , cg.Parented.template(Mcp4461Component) +) Mcp4461WiperIdx = mcp4461_ns.enum("Mcp4461WiperIdx") CHANNEL_OPTIONS = {