mirror of
https://github.com/esphome/esphome.git
synced 2025-11-16 14:55:50 +00:00
a78a98bef5ec2dd859f6eff65fa5738cfaf5c9ba
When sensor is connected to hardware uart, sometimes on boot uart's RX buffer contains several bytes of junk. Workaround it by draining all of it before sending command. Also turn on cleanup logic only if problem is detected (i.e. when reply from sensor doesn't look correct. Signed-off-by: Igor Mammedov <imammedo@redhat.com>
ESPHome

Documentation: https://esphome.io/
For issues, please go to the issue tracker.
For feature requests, please see feature requests.
Description
Languages
C++
64.5%
Python
35.3%
C
0.1%
