From b35fa32236bdae0c434893fd6a8dcdc9645c8c4f Mon Sep 17 00:00:00 2001 From: Oliver Kleinecke Date: Wed, 5 Feb 2025 14:53:04 +0100 Subject: [PATCH] Update mcp4461_output.cpp --- esphome/components/mcp4461/output/mcp4461_output.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/esphome/components/mcp4461/output/mcp4461_output.cpp b/esphome/components/mcp4461/output/mcp4461_output.cpp index 7469d4f1b8..7e63f9dc5a 100644 --- a/esphome/components/mcp4461/output/mcp4461_output.cpp +++ b/esphome/components/mcp4461/output/mcp4461_output.cpp @@ -9,16 +9,6 @@ namespace mcp4461 { static const char *const TAG = "mcp4461.output"; -void Mcp4461Wiper::setup() { - if (this->initial_value_.has_value()) { - // Use the value - ESP_LOGCONFIG(TAG, "Setting initial value %.3f", %this->initial_value_); - this->_parent->set_wiper_level(wiper, this->initial_value_); - } else { - ESP_LOGCONFIG(TAG, "No initial value set, retaining previous wiper level."); - } -} - void Mcp4461Wiper::write_state(float state) { uint8_t wiper_idx = static_cast(this->wiper_); ESP_LOGV(TAG, "Got value %02f from frontend", state);