mirror of
https://github.com/esphome/esphome.git
synced 2024-11-26 12:27:13 +01:00
[config] Early termination of validation steps on error (#6837)
This commit is contained in:
parent
4bf7c97088
commit
7c843437a7
@ -139,7 +139,7 @@ class Config(OrderedDict, fv.FinalValidateConfig):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def run_validation_steps(self):
|
def run_validation_steps(self):
|
||||||
while self._validation_tasks:
|
while self._validation_tasks and not self.errors:
|
||||||
task = heapq.heappop(self._validation_tasks)
|
task = heapq.heappop(self._validation_tasks)
|
||||||
task.step.run(self)
|
task.step.run(self)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user