mirror of
https://github.com/esphome/esphome.git
synced 2024-11-22 11:47:30 +01:00
allow defaults with no include vars (#6613)
This commit is contained in:
parent
8cb809d84d
commit
06d3829b45
@ -321,8 +321,9 @@ class ESPHomeLoaderMixin:
|
||||
file, vars = node.value, None
|
||||
|
||||
result = _load_yaml_internal(self._rel_path(file))
|
||||
if vars:
|
||||
result = substitute_vars(result, vars)
|
||||
if not vars:
|
||||
vars = {}
|
||||
result = substitute_vars(result, vars)
|
||||
return result
|
||||
|
||||
@_add_data_ref
|
||||
|
Loading…
Reference in New Issue
Block a user