Files
esphome-dev/esphome
Andrew Zaborowski c8ccb06f11 ct_clamp: Check sample() return value is not NaN (#921)
Don't try to update CT clamp's state with NaN values returned from the
underlaying sensor.  A single IO error in the sensor code will cause a
NaN to be returned and if we use that in CTClampSensor's floating point
maths both sample_sum_ and offset_ will become NaN and from there every
future calculation will use the NaN offset_ and return NaN too.
2019-12-17 12:08:37 +01:00
..
2019-12-07 18:28:55 +01:00
2019-12-07 18:53:20 +01:00
2019-12-07 18:28:55 +01:00
2019-12-07 18:28:55 +01:00
2019-12-07 18:28:55 +01:00
2019-10-24 14:19:33 +02:00
2019-12-07 18:28:55 +01:00
2019-12-07 18:28:55 +01:00
2019-12-07 18:28:55 +01:00
2019-12-07 18:28:55 +01:00
2019-12-07 18:28:55 +01:00
2019-12-07 18:28:55 +01:00
2019-12-07 18:28:55 +01:00
2019-10-24 14:19:33 +02:00
2019-12-07 18:28:55 +01:00
2019-12-07 18:28:55 +01:00
2019-12-07 18:28:55 +01:00
2019-12-07 18:28:55 +01:00
2019-12-07 18:28:55 +01:00
2019-12-07 18:28:55 +01:00
2019-12-07 18:28:55 +01:00
2019-12-07 18:28:55 +01:00
2019-12-07 18:28:55 +01:00
2019-12-07 18:28:55 +01:00
2019-12-07 18:28:55 +01:00
2019-12-07 18:28:55 +01:00
2019-12-07 18:28:55 +01:00
2019-12-07 18:28:55 +01:00