diff --git a/esphome/components/mcp4461/mcp4461.cpp b/esphome/components/mcp4461/mcp4461.cpp index f8a223699a..8d74081b20 100644 --- a/esphome/components/mcp4461/mcp4461.cpp +++ b/esphome/components/mcp4461/mcp4461.cpp @@ -27,7 +27,7 @@ void Mcp4461Component::begin_() { for (uint8_t i = 0; i < 8; i++) { if (this->reg_[i].initial_value.has_value()) { uint16_t initial_state; - initial_state = static_cast(this->reg_[i].initial_value * 1000); + initial_state = static_cast(this->reg_[i].initial_value * 1000.0); this->write_wiper_level_(i, initial_state); } if (this->reg_[i].enabled) {