From 1ba53cbb6d0bddff4a27a54c43621dc8ad127146 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 7 Jun 2023 12:19:52 -0500 Subject: [PATCH] binary sensor --- components/ratgdo/cover/ratgdo_cover.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/ratgdo/cover/ratgdo_cover.cpp b/components/ratgdo/cover/ratgdo_cover.cpp index 77fabea..1e11b49 100644 --- a/components/ratgdo/cover/ratgdo_cover.cpp +++ b/components/ratgdo/cover/ratgdo_cover.cpp @@ -21,13 +21,17 @@ namespace ratgdo { case esphome::ratgdo::DoorState::DOOR_STATE_OPEN: this->position = COVER_OPEN; this->current_operation = COVER_OPERATION_IDLE; + break; case esphome::ratgdo::DoorState::DOOR_STATE_CLOSED: this->position = COVER_CLOSED; this->current_operation = COVER_OPERATION_IDLE; + break; case esphome::ratgdo::DoorState::DOOR_STATE_OPENING: this->current_operation = COVER_OPERATION_OPENING; + break; case esphome::ratgdo::DoorState::DOOR_STATE_CLOSING: this->current_operation = COVER_OPERATION_CLOSING; + break; case esphome::ratgdo::DoorState::DOOR_STATE_STOPPED: default: this->current_operation = COVER_OPERATION_IDLE;