mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 05:24:53 +01:00
Allow .yml files to show up in the dashboard (#2257)
This commit is contained in:
parent
f924e80f43
commit
fa2eb46cd6
1 changed files with 2 additions and 2 deletions
|
@ -260,8 +260,8 @@ def filter_yaml_files(files):
|
|||
f
|
||||
for f in files
|
||||
if (
|
||||
os.path.splitext(f)[1] == ".yaml"
|
||||
and os.path.basename(f) != "secrets.yaml"
|
||||
os.path.splitext(f)[1] in (".yaml", ".yml")
|
||||
and os.path.basename(f) not in ("secrets.yaml", "secrets.yml")
|
||||
and not os.path.basename(f).startswith(".")
|
||||
)
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue