diff --git a/esphome/components/ethernet/__init__.py b/esphome/components/ethernet/__init__.py index ba80af74db..fe358f293d 100644 --- a/esphome/components/ethernet/__init__.py +++ b/esphome/components/ethernet/__init__.py @@ -234,7 +234,7 @@ def _is_framework_spi_polling_mode_supported() -> bool: return False -def _validate_spi_interface(config): +def _validate_spi_interface(config: ConfigType) -> ConfigType: """Set default SPI interface or validate user choice against the variant.""" if not CORE.is_esp32: return config