mirror of
https://github.com/esphome/esphome.git
synced 2026-02-24 10:18:23 -07:00
3dcaa552f712971816da0fbce7d564f3b042b82b
The batch UART read change in #13818 exposed a latent bug where the UART parser could start accumulating bytes mid-frame after module restart, causing an infinite cycle of "Max command length exceeded" warnings that prevented initialization. Add header validation for the first 4 bytes of each frame, ensuring the parser only accumulates data starting from a valid DATA_FRAME_HEADER (AA FF 03 00) or CMD_FRAME_HEADER (FD FC FB FA). Non-matching bytes are discarded until a valid frame start is found. Fixes #14131 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
478 MiB
Languages
C++
64.1%
Python
35.6%
C
0.2%
