mirror of
https://github.com/esphome/esphome.git
synced 2025-03-14 14:48:18 +00:00
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++
70.5%
Python
29.2%
C
0.1%