1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-07 13:52:20 +01:00

[config] Early termination of validation steps on error (#6837)

This commit is contained in:
Clyde Stubbs
2024-06-12 11:26:43 +10:00
committed by GitHub
parent 4bf7c97088
commit 7c843437a7

View File

@@ -139,7 +139,7 @@ class Config(OrderedDict, fv.FinalValidateConfig):
)
def run_validation_steps(self):
while self._validation_tasks:
while self._validation_tasks and not self.errors:
task = heapq.heappop(self._validation_tasks)
task.step.run(self)