mirror of
https://github.com/esphome/esphome.git
synced 2024-09-20 09:37:31 +02:00
undo test
This commit is contained in:
parent
fd323ece35
commit
afbcc4e083
1 changed files with 2 additions and 2 deletions
|
@ -166,9 +166,9 @@ void CSE7766Component::parse_data_() {
|
|||
calculated_current = power / voltage;
|
||||
}
|
||||
// Datasheet: minimum measured current is 50mA
|
||||
//if (calculated_current > 0.05f) {
|
||||
if (calculated_current > 0.05f) {
|
||||
current = current_coeff / float(current_cycle);
|
||||
//}
|
||||
}
|
||||
if (this->current_sensor_ != nullptr) {
|
||||
this->current_sensor_->publish_state(current);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue