1
0
mirror of https://github.com/esphome/esphome.git synced 2025-01-31 10:10:56 +00:00

allow defaults with no include vars (#6613)

This commit is contained in:
Samuel Sieb 2024-04-22 23:43:11 -07:00 committed by GitHub
parent 8cb809d84d
commit 06d3829b45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -321,7 +321,8 @@ 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:
vars = {}
result = substitute_vars(result, vars) result = substitute_vars(result, vars)
return result return result