From f5b995a454d8138b725d2fe24c05518b8781034b Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 22 Oct 2025 16:11:37 -1000 Subject: [PATCH] preen --- esphome/components/ethernet/__init__.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/esphome/components/ethernet/__init__.py b/esphome/components/ethernet/__init__.py index cbd2f07cae..77f70a3630 100644 --- a/esphome/components/ethernet/__init__.py +++ b/esphome/components/ethernet/__init__.py @@ -434,15 +434,19 @@ def _final_validate_rmii_pins(config: ConfigType) -> None: component_path = ".".join(str(p) for p in pin_path) if is_configurable: error_msg = ( - f"GPIO{pin_num} is used by Ethernet RMII ({pin_function}) with the current default configuration. " - f"This conflicts with '{component_path}'. " - f"Please choose a different GPIO pin for '{component_path}'." + f"GPIO{pin_num} is used by Ethernet RMII " + f"({pin_function}) with the current default " + f"configuration. This conflicts with '{component_path}'. " + f"Please choose a different GPIO pin for " + f"'{component_path}'." ) else: error_msg = ( - f"GPIO{pin_num} is reserved for Ethernet RMII ({pin_function}) and cannot be used. " - f"This pin is hardcoded by ESP-IDF and cannot be changed when using RMII Ethernet PHYs. " - f"Please choose a different GPIO pin for '{component_path}'." + f"GPIO{pin_num} is reserved for Ethernet RMII " + f"({pin_function}) and cannot be used. This pin is " + f"hardcoded by ESP-IDF and cannot be changed when using " + f"RMII Ethernet PHYs. Please choose a different GPIO pin " + f"for '{component_path}'." ) raise cv.Invalid(error_msg, path=pin_path)