mirror of
https://github.com/esphome/esphome.git
synced 2026-02-14 05:27:33 -07:00
c8ccb06f11e28c035f2d340444cfb3b3e49110ff
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.
ESPHome

Documentation: https://esphome.io/
For issues, please go to the issue tracker.
For feature requests, please see feature requests.
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme
Multiple Licenses
266 MiB
Languages
C++
64.2%
Python
35.5%
C
0.2%
