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:
Kevin O'Rourke 2019-05-01 17:15:51 +02:00 committed by Otto Winter
parent 8e954e0351
commit f0844a50f5

View File

@ -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: