mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 21:44:55 +01:00
allow defaults with no include vars (#6613)
This commit is contained in:
parent
33e9881830
commit
5838af646b
1 changed files with 3 additions and 2 deletions
|
@ -321,8 +321,9 @@ class ESPHomeLoaderMixin:
|
||||||
file, vars = node.value, None
|
file, vars = node.value, None
|
||||||
|
|
||||||
result = _load_yaml_internal(self._rel_path(file))
|
result = _load_yaml_internal(self._rel_path(file))
|
||||||
if vars:
|
if not vars:
|
||||||
result = substitute_vars(result, vars)
|
vars = {}
|
||||||
|
result = substitute_vars(result, vars)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
@_add_data_ref
|
@_add_data_ref
|
||||||
|
|
Loading…
Reference in a new issue