From cf887ecdfed38fef9ce67bd166621b4bbd728098 Mon Sep 17 00:00:00 2001 From: MageDelfador <410164263@qq.com> Date: Sun, 16 Oct 2022 18:40:32 +0800 Subject: [PATCH] fix setpoint 0 not working #17 --- custom_components/pid_controller/sensor.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/custom_components/pid_controller/sensor.py b/custom_components/pid_controller/sensor.py index 9b86095..a9c0139 100644 --- a/custom_components/pid_controller/sensor.py +++ b/custom_components/pid_controller/sensor.py @@ -762,10 +762,6 @@ def _update_sensor(self, entity=None) -> None: if not self.enabled: return - if self.set_point == 0: - self._sensor_state = 0 - return - source = self.source set_point = self.set_point