From 9b92e98109195f38080504f29c8cf1830b521303 Mon Sep 17 00:00:00 2001 From: Penny Wood Date: Wed, 3 Apr 2024 11:48:31 +0000 Subject: [PATCH] Rollback change --- esphome/components/ws18x0_uart/ws18x0_uart.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/ws18x0_uart/ws18x0_uart.cpp b/esphome/components/ws18x0_uart/ws18x0_uart.cpp index 672c3bf64f..0a41c291c3 100644 --- a/esphome/components/ws18x0_uart/ws18x0_uart.cpp +++ b/esphome/components/ws18x0_uart/ws18x0_uart.cpp @@ -33,7 +33,7 @@ void ws18x0_uart::WS18x0UARTComponent::loop() { break; case WS18X0_UART_STATE_WAITING_FOR_LENGTH: if (data >= 9 && data <= 10) { - this->raw_ = 0; + this->raw_ = data; this->read_state_ = data - 2; } else { // Invalid length. Warn and resync