mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 09:17:46 +01:00
clang
This commit is contained in:
parent
afbcc4e083
commit
74ef59c570
1 changed files with 1 additions and 2 deletions
|
@ -184,8 +184,7 @@ void CSE7766Component::parse_data_() {
|
||||||
if (reactive_power < 0.0f) {
|
if (reactive_power < 0.0f) {
|
||||||
ESP_LOGD(TAG, "Impossible reactive power: %.4f is negative", reactive_power);
|
ESP_LOGD(TAG, "Impossible reactive power: %.4f is negative", reactive_power);
|
||||||
this->reactive_power_sensor_->publish_state(0.0f);
|
this->reactive_power_sensor_->publish_state(0.0f);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
this->reactive_power_sensor_->publish_state(reactive_power);
|
this->reactive_power_sensor_->publish_state(reactive_power);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue