1
0
mirror of https://github.com/esphome/esphome.git synced 2025-02-21 20:38:16 +00:00
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-04-22 21:56:30 +02:00
2019-05-27 13:06:45 +02:00
2019-12-07 18:28:55 +01:00
2019-12-07 18:28:55 +01:00
2019-04-22 21:56:30 +02:00
2019-12-07 18:28:55 +01:00
2019-10-13 13:51:34 +02:00
2019-05-08 10:17:08 +02:00
2019-10-31 20:31:58 +01:00
2019-05-15 20:57:29 +02:00
2019-04-22 21:56:30 +02:00
2019-04-22 21:56:30 +02:00
2019-05-15 10:55:35 +02:00
2019-11-16 16:34:11 +01:00
2019-10-23 14:43:41 +02:00
2019-05-30 20:01:58 +02:00
2019-12-04 19:30:10 +01:00
2019-06-03 16:07:15 +02:00
2019-12-07 18:28:55 +01:00
2019-12-04 19:30:10 +01:00
2019-04-22 21:56:30 +02:00
2019-12-07 18:28:55 +01:00
2019-05-08 10:17:08 +02:00
2019-04-22 21:56:30 +02:00
2019-05-08 10:17:08 +02:00
2019-12-07 18:28:55 +01:00
2019-05-12 23:04:36 +02:00
2019-05-24 16:34:01 +02:00
2019-06-01 22:00:09 +02:00
2019-06-28 11:29:37 +02:00
2019-04-22 21:56:30 +02:00
2019-12-07 18:28:55 +01:00
2019-12-07 18:28:55 +01:00
2019-10-19 16:16:49 +02:00
2019-10-15 20:53:59 +02:00
2019-12-07 18:28:55 +01:00
2019-12-07 18:28:55 +01:00
2019-04-22 21:56:30 +02:00
2019-12-04 19:30:10 +01:00
2019-10-20 17:56:57 +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-04-22 21:56:30 +02:00
2019-04-24 23:49:02 +02:00
2019-10-21 22:55:27 +02:00
2019-12-07 18:28:55 +01:00
2019-12-07 18:28:55 +01:00
2019-11-26 18:31:33 +01:00
2019-10-17 16:18:41 +02:00
2019-10-27 12:30:36 +01:00
2019-04-22 21:56:30 +02:00
2019-12-07 18:28:55 +01:00
2019-12-07 18:28:55 +01:00
2019-05-27 13:06:45 +02:00
2019-12-07 18:28:55 +01:00
2019-04-22 21:56:30 +02:00
2019-12-07 18:28:55 +01:00
2019-05-12 23:04:36 +02:00
2019-12-07 18:28:55 +01:00
2019-05-11 11:40:29 +02:00
2019-12-07 18:28:55 +01:00
2019-05-12 23:04:36 +02:00
2019-05-26 10:31:29 +02:00
2019-11-12 21:44:20 +01:00
2019-11-12 19:04:39 +01:00
2019-10-23 14:43:41 +02:00
2019-12-07 18:28:55 +01:00
2019-12-07 18:28:55 +01:00
2019-05-13 20:45:22 +02:00
2019-12-10 11:09:35 +01:00
2019-04-22 21:56:30 +02:00
2019-04-22 21:56:30 +02:00
2019-10-20 16:15:30 +02:00
2019-10-19 21:59:55 +02:00
2019-06-28 11:29:37 +02:00
2019-10-31 20:31:58 +01:00
2019-06-08 17:45:55 +02:00
2019-10-17 16:36:11 +02:00
2019-04-22 21:56:30 +02:00
2019-04-22 21:56:30 +02:00
2019-12-07 18:28:55 +01:00
2019-12-07 18:28:55 +01:00
2019-10-23 14:43:41 +02:00
2019-12-07 18:28:55 +01:00
2019-12-07 18:28:55 +01:00
2019-08-29 21:34:29 -03:00
2019-12-04 13:11:53 +01:00
2019-05-13 20:45:22 +02:00
2019-05-13 13:05:30 +02:00
2019-11-12 19:04:39 +01:00
2019-12-07 18:28:55 +01:00
2019-04-22 21:56:30 +02:00
2019-10-23 14:43:41 +02:00
2019-10-20 17:56:57 +02:00
2019-05-08 09:58:03 +02:00
2019-12-07 18:28:55 +01:00
2019-08-29 21:34:29 -03:00
2019-05-08 10:17:08 +02:00