We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93de108 commit ab0f4e5Copy full SHA for ab0f4e5
utils/update-readme.py
@@ -71,8 +71,8 @@ def permalink_entity(x, yaml_fname):
71
raise ValueError("Incorrectly identified entity which is actually a service.")
72
domain, name = x.split(".")
73
fname = Path(yaml_fname or f"includes/{domain}s.yaml")
74
- # Try legacy format first (e.g., "entity_name:"), then modern template format
75
- # (e.g., "unique_id: entity_name")
+ # Try key format (e.g., "script_name:" in scripts.yaml), then unique_id format
+ # (e.g., "unique_id: entity_name" in templates.yaml)
76
for pattern in [f"{name}:", f"unique_id: {name}"]:
77
with suppress(ValueError):
78
from_line = line_number(fname, pattern, True)
0 commit comments