diff --git a/components/hcpbridge/cover/hcpbridge_cover.cpp b/components/hcpbridge/cover/hcpbridge_cover.cpp index 04b1c4c..8bade80 100644 --- a/components/hcpbridge/cover/hcpbridge_cover.cpp +++ b/components/hcpbridge/cover/hcpbridge_cover.cpp @@ -65,7 +65,7 @@ namespace esphome } else { - this->parent_->engine->setPosition((int)call.get_position().value() * 100.0f); + this->parent_->engine->setPosition(call.get_position().value() * 100.0f); } } }