mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
Fix secrets in files included via include_dir_list (#47350)
This commit is contained in:
parent
17401cbc29
commit
208a104e96
@ -227,7 +227,7 @@ def _include_dir_list_yaml(
|
|||||||
"""Load multiple files from directory as a list."""
|
"""Load multiple files from directory as a list."""
|
||||||
loc = os.path.join(os.path.dirname(loader.name), node.value)
|
loc = os.path.join(os.path.dirname(loader.name), node.value)
|
||||||
return [
|
return [
|
||||||
load_yaml(f)
|
load_yaml(f, loader.secrets)
|
||||||
for f in _find_files(loc, "*.yaml")
|
for f in _find_files(loc, "*.yaml")
|
||||||
if os.path.basename(f) != SECRET_YAML
|
if os.path.basename(f) != SECRET_YAML
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user