From 09f26185c629d3144632ac9c3914c2e975759dd2 Mon Sep 17 00:00:00 2001 From: spacemanspiff2007 <10754716+spacemanspiff2007@users.noreply.github.com> Date: Fri, 22 Apr 2022 04:16:46 +0200 Subject: [PATCH] on_state gets only called on state change (#1961) --- components/binary_sensor/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/binary_sensor/index.rst b/components/binary_sensor/index.rst index bfeb3fe0c..97161a2a1 100644 --- a/components/binary_sensor/index.rst +++ b/components/binary_sensor/index.rst @@ -41,7 +41,7 @@ Automations: - **on_release** (*Optional*, :ref:`Automation `): An automation to perform when the button is released. See :ref:`binary_sensor-on_release`. - **on_state** (*Optional*, :ref:`Automation `): An automation to perform - when a state is published. See :ref:`binary_sensor-on_state`. + when a state change is published. See :ref:`binary_sensor-on_state`. - **on_click** (*Optional*, :ref:`Automation `): An automation to perform when the button is held down for a specified period of time. See :ref:`binary_sensor-on_click`.