mirror of
https://github.com/esphome/esphome.git
synced 2026-09-21 20:18:43 +00:00
Merge remote-tracking branch 'upstream/dev' into integration
This commit is contained in:
+2
-2
@@ -162,8 +162,8 @@ def parse_component_metadata(name: str) -> ComponentMetadata:
|
||||
if not init_file.exists():
|
||||
return ComponentMetadata()
|
||||
try:
|
||||
tree = ast.parse(init_file.read_text())
|
||||
except (OSError, SyntaxError):
|
||||
tree = ast.parse(init_file.read_text(encoding="utf-8"))
|
||||
except (OSError, SyntaxError, UnicodeError):
|
||||
return ComponentMetadata()
|
||||
fields: dict[str, frozenset[str]] = {
|
||||
"AUTO_LOAD": frozenset(),
|
||||
|
||||
Reference in New Issue
Block a user