diff --git a/esphome/components/mcp4461/mcp4461.cpp b/esphome/components/mcp4461/mcp4461.cpp index 0af0474389..25af3437ec 100644 --- a/esphome/components/mcp4461/mcp4461.cpp +++ b/esphome/components/mcp4461/mcp4461.cpp @@ -25,7 +25,7 @@ void Mcp4461Component::begin_() { this->reg_[i].state = this->read_wiper_level_(i); } else { Mcp4461WiperIdx wiper_idx; - wiper_idx = static_cast(i); + wiper_idx = static_cast(i); this->disable_wiper(wiper_idx); } }