1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 11:22:24 +01:00

[core] Reset pin registry after target platform validations (#10199)

This commit is contained in:
Jesse Hills
2025-08-12 16:33:07 +12:00
committed by GitHub
parent ef2121a215
commit c65af68e63

View File

@@ -942,6 +942,9 @@ def validate_config(
# do not try to validate further as we don't know what the target is # do not try to validate further as we don't know what the target is
return result 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(): for domain, conf in config.items():
result.add_validation_step(LoadValidationStep(domain, conf)) result.add_validation_step(LoadValidationStep(domain, conf))
result.add_validation_step(IDPassValidationStep()) result.add_validation_step(IDPassValidationStep())