From aa05a3eac7f13c3d261d359ffad362a7726d60ce Mon Sep 17 00:00:00 2001 From: Oliver Kleinecke Date: Tue, 4 Feb 2025 10:37:47 +0100 Subject: [PATCH] Update __init__.py --- esphome/components/mcp4461/output/__init__.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/esphome/components/mcp4461/output/__init__.py b/esphome/components/mcp4461/output/__init__.py index e6cb836429..5bcdf37634 100644 --- a/esphome/components/mcp4461/output/__init__.py +++ b/esphome/components/mcp4461/output/__init__.py @@ -8,16 +8,16 @@ DEPENDENCIES = ["mcp4461"] Mcp4461Wiper = mcp4461_ns.class_("Mcp4461Wiper", output.FloatOutput) -MCP4461WiperIdx = mcp4461_ns.enum("MCP4461WiperIdx") +MCP4461WiperIdx = mcp4461_ns.class("MCP4461WiperIdx") CHANNEL_OPTIONS = { - "A": MCP4461WiperIdx.MCP4461_WIPER_0, - "B": MCP4461WiperIdx.MCP4461_WIPER_1, - "C": MCP4461WiperIdx.MCP4461_WIPER_2, - "D": MCP4461WiperIdx.MCP4461_WIPER_3, - "E": MCP4461WiperIdx.MCP4461_WIPER_4, - "F": MCP4461WiperIdx.MCP4461_WIPER_5, - "G": MCP4461WiperIdx.MCP4461_WIPER_6, - "H": MCP4461WiperIdx.MCP4461_WIPER_7, + "A": MCP4461WiperIdx::MCP4461_WIPER_0, + "B": MCP4461WiperIdx::MCP4461_WIPER_1, + "C": MCP4461WiperIdx::MCP4461_WIPER_2, + "D": MCP4461WiperIdx::MCP4461_WIPER_3, + "E": MCP4461WiperIdx::MCP4461_WIPER_4, + "F": MCP4461WiperIdx::MCP4461_WIPER_5, + "G": MCP4461WiperIdx::MCP4461_WIPER_6, + "H": MCP4461WiperIdx::MCP4461_WIPER_7, } CONF_ENABLE = "enable"