From fa4028631b0c103b7f73ad6f44244e62d6f31d93 Mon Sep 17 00:00:00 2001 From: Oliver Kleinecke Date: Wed, 5 Feb 2025 14:52:39 +0100 Subject: [PATCH] Update mcp4461_output.h --- esphome/components/mcp4461/output/mcp4461_output.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/esphome/components/mcp4461/output/mcp4461_output.h b/esphome/components/mcp4461/output/mcp4461_output.h index a0ebc0fcf9..39fb7c5264 100644 --- a/esphome/components/mcp4461/output/mcp4461_output.h +++ b/esphome/components/mcp4461/output/mcp4461_output.h @@ -11,7 +11,7 @@ namespace mcp4461 { class Mcp4461Wiper : public output::FloatOutput { public: Mcp4461Wiper(Mcp4461Component *parent, Mcp4461WiperIdx wiper, bool enable, bool terminal_a, bool terminal_b, - bool terminal_w) + bool terminal_w, float initial_value = 1.0) : parent_(parent), wiper_(wiper), enable_(enable), @@ -42,7 +42,6 @@ class Mcp4461Wiper : public output::FloatOutput { void set_initial_value(float initial_value) { this->initial_value_ = initial_value; } protected: - void setup() override; void write_state(float state) override; Mcp4461Component *parent_; Mcp4461WiperIdx wiper_;