From 5fc1b056ed0488a4580457722b2e9c4d7de9822d Mon Sep 17 00:00:00 2001 From: Nico Peter Date: Mon, 6 May 2024 09:00:44 +0200 Subject: [PATCH] Update time_based.rst - fixed typo and property name --- components/cover/time_based.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/cover/time_based.rst b/components/cover/time_based.rst index e5a5150e9..df66b4df3 100644 --- a/components/cover/time_based.rst +++ b/components/cover/time_based.rst @@ -80,16 +80,16 @@ Configuration variables: Handle stop_action: ------------------------ For some cover controllers, separate switches for UP and DOWN action are used while a stop is issued when sending a counter command. -This can be handled at the **stop_action** by using the folling lamda function: +This can be handled at the **stop_action** by using the following lamda function: .. code-block:: yaml stop_action: - lambda: !lambda |- - if (id(cover).last_operation() == CoverOperation::COVER_OPERATION_OPENING) { + if (id(cover).get_last_operation() == CoverOperation::COVER_OPERATION_OPENING) { // Cover is currently opening id(cover_button_down).press(); - } else if (id(cover).last_operation() == CoverOperation::COVER_OPERATION_CLOSING) { + } else if (id(cover).get_last_operation() == CoverOperation::COVER_OPERATION_CLOSING) { // Cover is currently closing id(cover_button_up).press(); }