mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 09:17:46 +01:00
Fix broken configs with non-existent components (#5993)
This commit is contained in:
parent
9202a30dc7
commit
7dc35a1029
1 changed files with 5 additions and 1 deletions
|
@ -315,7 +315,11 @@ class LoadValidationStep(ConfigValidationStep):
|
||||||
return
|
return
|
||||||
result.add_output_path([self.domain], self.domain)
|
result.add_output_path([self.domain], self.domain)
|
||||||
component = get_component(self.domain)
|
component = get_component(self.domain)
|
||||||
if component.multi_conf_no_default and isinstance(self.conf, core.AutoLoad):
|
if (
|
||||||
|
component is not None
|
||||||
|
and component.multi_conf_no_default
|
||||||
|
and isinstance(self.conf, core.AutoLoad)
|
||||||
|
):
|
||||||
self.conf = []
|
self.conf = []
|
||||||
result[self.domain] = self.conf
|
result[self.domain] = self.conf
|
||||||
path = [self.domain]
|
path = [self.domain]
|
||||||
|
|
Loading…
Reference in a new issue