allow defaults with no include vars (#6613)

This commit is contained in:
Samuel Sieb 2024-04-22 23:43:11 -07:00 committed by Jesse Hills
parent 33e9881830
commit 5838af646b
No known key found for this signature in database
GPG key ID: BEAAE804EFD8E83A

View file

@ -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