From 726f0248994172e5c6d6a331b67e5631f8bfde79 Mon Sep 17 00:00:00 2001 From: Alvin Schiller <103769832+AlvinSchiller@users.noreply.github.com> Date: Wed, 8 May 2024 23:12:08 +0200 Subject: [PATCH] docs: add alert for behavior change --- components/gpio_control/README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/gpio_control/README.md b/components/gpio_control/README.md index 73bbbb830..27d0b5a96 100644 --- a/components/gpio_control/README.md +++ b/components/gpio_control/README.md @@ -59,6 +59,11 @@ functionCall: functionCallPlayerPause However, a button has more parameters than these. In the following comprehensive list you can also find the default values which are used automatically if you leave out these settings: * **functionCallArgs**: Arguments for primary function, defaults to `None`. Arguments are ignored, if `functionCall` does not take any. + +> [!IMPORTANT] +> Since v2.8.0 the behavior for `SecondFunc` and `SecondFuncRepeat` has changed. The secondary function is no longer triggered additionally to the primary function. +> Now its called exclusively if `hold_time` is reached. The primary function will only be triggered if the button is pressed shorter then `hold_time`! +> Existing configurations may need to adapt to this. * **hold_mode**: Specifies what shall happen if the button is held pressed for longer than `hold_time`: * `None` (Default): Nothing special will happen. * `Repeat`: The configured `functionCall` is instantly called and repeatedly after each `hold_time` interval.