mirror of
				https://github.com/esphome/esphome.git
				synced 2025-11-04 09:01:49 +00:00 
			
		
		
		
	Allow .yml files to show up in the dashboard (#2257)
This commit is contained in:
		@@ -260,8 +260,8 @@ def filter_yaml_files(files):
 | 
				
			|||||||
        f
 | 
					        f
 | 
				
			||||||
        for f in files
 | 
					        for f in files
 | 
				
			||||||
        if (
 | 
					        if (
 | 
				
			||||||
            os.path.splitext(f)[1] == ".yaml"
 | 
					            os.path.splitext(f)[1] in (".yaml", ".yml")
 | 
				
			||||||
            and os.path.basename(f) != "secrets.yaml"
 | 
					            and os.path.basename(f) not in ("secrets.yaml", "secrets.yml")
 | 
				
			||||||
            and not os.path.basename(f).startswith(".")
 | 
					            and not os.path.basename(f).startswith(".")
 | 
				
			||||||
        )
 | 
					        )
 | 
				
			||||||
    ]
 | 
					    ]
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user