mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 19:32:19 +01:00
[core] Reset pin registry after target platform validations (#10199)
This commit is contained in:
@@ -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())
|
||||||
|
Reference in New Issue
Block a user