From c76de8074c98c7667299c250f92ea61ed736c27b 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..6dc6c9614 100644 --- a/components/gpio_control/README.md +++ b/components/gpio_control/README.md @@ -68,6 +68,11 @@ However, a button has more parameters than these. In the following comprehensive Holding the button even longer than `hold_time` will cause no further action unless you are in the `Repeat` or `SecondFuncRepeat` mode. + + > [!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_time**: Reference time for this buttons `hold_mode` feature in seconds. Default is `0.3`. This setting is ignored if `hold_mode` is unset or `None` * **functionCall2**: Secondary function, default is `None`. This setting is ignored unless `hold_mode` is set to `SecondFunc` or `SecondFuncRepeat`.