From c65af68e63e836460b9f6e92745200838bcb4a10 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Tue, 12 Aug 2025 16:33:07 +1200 Subject: [PATCH] [core] Reset pin registry after target platform validations (#10199) --- esphome/config.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/esphome/config.py b/esphome/config.py index ecd0cbb048..90325cbf6e 100644 --- a/esphome/config.py +++ b/esphome/config.py @@ -942,6 +942,9 @@ def validate_config( # do not try to validate further as we don't know what the target is return result + # Reset the pin registry so that any target platforms with pin validations do not get the duplicate pin warning. + pins.PIN_SCHEMA_REGISTRY.reset() + for domain, conf in config.items(): result.add_validation_step(LoadValidationStep(domain, conf)) result.add_validation_step(IDPassValidationStep())