From afbcc4e083d7c301d569adb80331f5ac7d26f345 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 16 Aug 2024 20:31:22 -0700 Subject: [PATCH] undo test --- esphome/components/cse7766/cse7766.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/cse7766/cse7766.cpp b/esphome/components/cse7766/cse7766.cpp index ebab32eb46..210ee8fe9f 100644 --- a/esphome/components/cse7766/cse7766.cpp +++ b/esphome/components/cse7766/cse7766.cpp @@ -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); }