Skip to content

Commit c5e9db9

Browse files
committed
Add templates.yaml coverage for all template entity types in README script
The update-readme.py script now properly handles sensors, binary_sensors, and switches defined in templates.yaml, not just the legacy YAML files.
1 parent 5b11206 commit c5e9db9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

utils/update-readme.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,14 @@ def get_dependencies(automation):
110110
for domain, yaml_file in [
111111
("script", "scripts.yaml"),
112112
("sensor", "includes/sensors.yaml"),
113+
("sensor", "includes/templates.yaml"),
114+
("sensor", "includes/utility_meter.yaml"),
113115
("binary_sensor", "includes/binary_sensors.yaml"),
116+
("binary_sensor", "includes/templates.yaml"),
114117
("switch", "includes/templates.yaml"),
115118
("shell_command", "includes/shell_commands.yaml"),
116119
("group", "includes/groups.yaml"),
117120
("plant", "includes/plant.yaml"),
118-
("sensor", "includes/utility_meter.yaml"),
119121
]:
120122
entities = find_entities(str(automation), domain)
121123
for entity in sorted(entities):

0 commit comments

Comments
 (0)