mirror of
https://github.com/esphome/esphome.git
synced 2025-01-31 02:00:55 +00:00
[uart] fix Arduino framework check
This commit is contained in:
parent
7735697b8e
commit
0ca06afa37
@ -128,7 +128,7 @@ def validate_flow_control_support(config):
|
|||||||
raise cv.Invalid(
|
raise cv.Invalid(
|
||||||
"ESP32 RS485 UART Flow Control requires Arduino framework version 2.0.8 or higher."
|
"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.")
|
raise cv.Invalid("Hardware does not support RS485 flow control.")
|
||||||
return config
|
return config
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user