mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 13:15:18 +02:00
Fix secrets in files included via include_dir_list (#47350)
This commit is contained in:
@@ -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
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user