Skip to content

Commit

Permalink
Fixed documentation and example for shutdown button (#1927)
Browse files Browse the repository at this point in the history
* fixed shutdown button example

* Added example for shutdown button
  • Loading branch information
arnotron authored Dec 27, 2022
1 parent 4adedc0 commit 34b0810
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions resources/default-settings/gpio.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,11 @@ input_devices:
args: 3
on_long_press_ab:
alias: toggle_output
Shutdown:
type: LongPressButton
kwargs:
pin: 3
hold_time: 3
actions:
on_press:
alias: shutdown

0 comments on commit 34b0810

Please sign in to comment.