mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-25 17:17:54 +01:00
Fix config name for showing previous page (#238)
Although the documentation says `show_prev` it's `show_previous` in esphome/components/display/__init__.py and `show_prev` results in a build error: ``` Failed config binary_sensor.gpio: [source badgy.yaml:37] platform: gpio pin: GPIO10 id: joystick_left on_click: [source badgy.yaml:41] then: - [source badgy.yaml:42] Unable to find action with the name 'display.page.show_prev'. display.page.show_prev: my_display [source badgy.yaml:42] - component.update: my_display ```
This commit is contained in:
parent
8e954e0351
commit
f0844a50f5
@ -374,13 +374,13 @@ different content, and switch between them on a timer.
|
||||
|
||||
You can then switch between these with three different actions:
|
||||
|
||||
**show_next** / **show_prev**: Shows the next or previous page, wraps around at the end.
|
||||
**show_next** / **show_previous**: Shows the next or previous page, wraps around at the end.
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
on_...:
|
||||
- display.page.show_next: my_display
|
||||
- display.page.show_prev: my_display
|
||||
- display.page.show_previous: my_display
|
||||
|
||||
# For example cycle through pages on a timer
|
||||
interval:
|
||||
|
Loading…
Reference in New Issue
Block a user