From e207c6ad841240a2b4e3b5012140e37a0106e55e Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Mon, 14 Oct 2019 12:06:23 +0200 Subject: [PATCH] Fix ct_clamp update Fixes https://github.com/esphome/issues/issues/684 --- esphome/components/ct_clamp/ct_clamp_sensor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/ct_clamp/ct_clamp_sensor.cpp b/esphome/components/ct_clamp/ct_clamp_sensor.cpp index 8819f9711e..674cc0ae98 100644 --- a/esphome/components/ct_clamp/ct_clamp_sensor.cpp +++ b/esphome/components/ct_clamp/ct_clamp_sensor.cpp @@ -59,7 +59,7 @@ void CTClampSensor::update() { } void CTClampSensor::loop() { - if (!this->is_sampling_ || !this->is_calibrating_offset_) + if (!this->is_sampling_ && !this->is_calibrating_offset_) return; // Perform a single sample