Skip to content

Commit 5c38add

Browse files
authored
Merge branch 'current' into patch-1
2 parents b791129 + 7916da7 commit 5c38add

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

content/automations/_index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ params:
77
image: auto-fix.svg
88
---
99

10+
{{< anchor "automation" >}}
11+
1012
Automations are a very powerful aspect of ESPHome; they allow you to easily perform actions given some condition(s).
1113

1214
When you want your ESPHome device to respond to its environment, you use an automation. Here are some examples:

content/components/display/max7219digit.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -75,34 +75,24 @@ display:
7575
- **chip_lines_style** (*Optional*): How are the lines in Multiline Mode connected? Possible values are `zigzag` and `snake`. Defaults to `snake`
7676
- **flip_x** (*Optional*, boolean): Flip the horizontal axis on the screen. Defaults to `false`.
7777

78-
{{< anchor "display-max7219digit_actions" >}}
79-
8078
## Actions
8179

8280
The following actions are replicas of the LAMBDA functions shown in the next section.
8381

84-
{{< anchor "display-max7219digit_actions_invert_on_off>" >}}
85-
8682
### `MAX7219.invert_on` & `MAX7219.invert_off` Action
8783

8884
This action `MAX7219.invert_on` will invert the display. So background pixels are on and texts pixels are
8985
off. `MAX7219.invert_off` sets the display back to normal. The background pixels are only set at the next update, the pixels drawn in
9086
the various function like print, line, etc. are directly influenced by the invert command.
9187

92-
{{< anchor "display-max7219digit_actions_turn_on_off" >}}
93-
9488
### `MAX7219.turn_on` & `MAX7219.turn_off` Action
9589

9690
The display can be switched on and off "dynamically" with the actions `MAX7219.turn_on` & `MAX7219.turn_off`.
9791

98-
{{< anchor "display-max7219digit_actions_reverse_off" >}}
99-
10092
## `MAX7219.reverse_on` & `MAX7219.reverse_off` Action
10193

10294
With this actions you can reverse the display direction from left to right to right to left.
10395

104-
{{< anchor "display-max7219digit_actions_intensity" >}}
105-
10696
## `MAX7219.intensity` Action
10797

10898
The intensity of the screen can be set "dynamically" within the lambda code with the following command: it.intensity(`0` .. `15` ).

script/md_anchors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def process_markdown_file(file_path):
3232
continue
3333

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

0 commit comments

Comments
 (0)