From 9b3981ba976e57fbb2ffd3b293d3a21ad7a00db3 Mon Sep 17 00:00:00 2001 From: brambo123 Date: Fri, 17 Jan 2025 17:10:27 +0100 Subject: [PATCH] [uart] lint fix --- esphome/components/uart/__init__.py | 2 +- esphome/components/uart/uart_component_esp_idf.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/uart/__init__.py b/esphome/components/uart/__init__.py index 9b6dc65897..57c3eddba7 100644 --- a/esphome/components/uart/__init__.py +++ b/esphome/components/uart/__init__.py @@ -31,7 +31,7 @@ from esphome.const import ( CONF_LAMBDA, PLATFORM_HOST, KEY_CORE, - KEY_FRAMEWORK_VERSION + KEY_FRAMEWORK_VERSION, ) from esphome.core import CORE diff --git a/esphome/components/uart/uart_component_esp_idf.cpp b/esphome/components/uart/uart_component_esp_idf.cpp index b6bd08e005..4f708724b0 100644 --- a/esphome/components/uart/uart_component_esp_idf.cpp +++ b/esphome/components/uart/uart_component_esp_idf.cpp @@ -139,7 +139,7 @@ void IDFUARTComponent::setup() { this->mark_failed(); return; } - + if (this->flow_control_pin_ != nullptr) { err = uart_set_mode(this->uart_num_, UART_MODE_RS485_HALF_DUPLEX); if (err != ESP_OK) {