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;