Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions content/automations/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ params:
image: auto-fix.svg
---

{{< anchor "automation" >}}

Automations are a very powerful aspect of ESPHome; they allow you to easily perform actions given some condition(s).

When you want your ESPHome device to respond to its environment, you use an automation. Here are some examples:
Expand Down
2 changes: 1 addition & 1 deletion script/md_anchors.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def process_markdown_file(file_path):
continue

# Shortcodes
shortcode_match = re.search(r'{{<\s*anchor\s*"([^"]+)"\s*>}}', line)
shortcode_match = re.search(r'\{\{<\s*anchor\s+"([^\s>]+)"\s*>}}', line)
if shortcode_match:
anchor_id = shortcode_match.group(1)
# Look ahead for heading
Expand Down