Update the patched UART component to ESPHome 2026.11.0

ESPHome 2026.11's tuya component calls uart.new_uart_component(), which the
2026.10.2 copy didn't have, so the build failed. Copy the UART component from
2026.11.0, reapply the PA13/PA14 patch, regenerate the patch file and point
the refs at v1.0.6.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mangavalkandClaude Opus 5.5 committed 2026-11-19 00:31:45 +01:00
1 parent bcc6b3a42b
commit 1457e25d98
39 files changed
+907 -304

No files matched your search

+7 -7
View File
@@ -4,7 +4,7 @@
namespace esphome::uart {
static const char *const TAG = "uart.switch";
ESPHOME_LOG_TAG(TAG, "uart.switch");
void UARTSwitch::loop() {
if (this->send_every_) {
@@ -17,13 +17,13 @@ void UARTSwitch::loop() {
}
void UARTSwitch::write_command_(bool state) {
if (state && !this->data_on_.empty()) {
ESP_LOGD(TAG, "'%s': Sending on data", this->get_name().c_str());
this->write_array(this->data_on_.data(), this->data_on_.size());
if (state && this->data_on_len_ != 0) {
ESP_LOGD(TAG, "'%s': Sending on data", LOG_STR_ARG(this->get_log_name()));
this->write_array_progmem(this->data_on_, this->data_on_len_);
}
if (!state && !this->data_off_.empty()) {
ESP_LOGD(TAG, "'%s': Sending off data", this->get_name().c_str());
this->write_array(this->data_off_.data(), this->data_off_.size());
if (!state && this->data_off_len_ != 0) {
ESP_LOGD(TAG, "'%s': Sending off data", LOG_STR_ARG(this->get_log_name()));
this->write_array_progmem(this->data_off_, this->data_off_len_);
}
}