1
0
mirror of https://github.com/esphome/esphome.git synced 2025-01-18 12:05:41 +00:00

[uart] fix Arduino framework check

This commit is contained in:
brambo123 2025-01-17 17:22:34 +01:00
parent 7735697b8e
commit 0ca06afa37

View File

@ -128,7 +128,7 @@ def validate_flow_control_support(config):
raise cv.Invalid(
"ESP32 RS485 UART Flow Control requires Arduino framework version 2.0.8 or higher."
)
elif not CORE.is_esp32:
elif not CORE.is_esp32 and CONF_FLOW_CONTROL_PIN in config:
raise cv.Invalid("Hardware does not support RS485 flow control.")
return config