diff --git a/esphome/components/mcp4461/mcp4461.cpp b/esphome/components/mcp4461/mcp4461.cpp index a2948ae8bf..829865e315 100644 --- a/esphome/components/mcp4461/mcp4461.cpp +++ b/esphome/components/mcp4461/mcp4461.cpp @@ -45,7 +45,7 @@ void Mcp4461Component::begin_() { void Mcp4461Component::set_initial_value(Mcp4461WiperIdx wiper, float initial_value) { uint8_t wiper_id = static_cast(wiper); - this->reg_[wiper_id].initial_value = initial_value; + this->reg_[wiper_id].initial_value = initial_value; } void Mcp4461Component::set_write_protection_status_() {