diff --git a/esphome/components/hx711/hx711.cpp b/esphome/components/hx711/hx711.cpp index ffe7f89687..1c808a2501 100644 --- a/esphome/components/hx711/hx711.cpp +++ b/esphome/components/hx711/hx711.cpp @@ -27,7 +27,7 @@ float HX711Sensor::get_setup_priority() const { return setup_priority::DATA; } void HX711Sensor::update() { uint32_t result; if (this->read_sensor_(&result)) { - int32_t value = static_cast(result) + int32_t value = static_cast(result); ESP_LOGD(TAG, "'%s': Got value %d", this->name_.c_str(), value); this->publish_state(value); }