def get_device(self, **kwargs):
method = self.get_method()<EOL>kwargs = kwargs or {}<EOL>kwargs['<STR_LIT:name>'] = '<STR_LIT:default>'<EOL>kwargs['<STR_LIT:user>'] = self.request.user<EOL>if method in ('<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>kwargs['<STR_LIT>'] = method<EOL>kwargs['<STR_LIT>'] = self.storage.validated_step_data.get(method, {}).get('<STR_LIT>')<EOL>return PhoneDevice(key=self.get_key(method), **kwargs)<EOL><DEDENT>if method == '<STR_LIT>':<EOL><INDENT>kwargs['<STR_LIT>'] = self.storage.validated_step_data.get('<STR_LIT>', {}).get('<STR_LIT>', '<STR_LIT>')[:-<NUM_LIT:32>]<EOL>try:<EOL><INDENT>kwargs['<STR_LIT>'] = ValidationService.objects.get(name='<STR_LIT:default>')<EOL><DEDENT>except ValidationService.DoesNotExist:<EOL><INDENT>raise KeyError("<STR_LIT>")<EOL><DEDENT>except ValidationService.MultipleObjectsReturned:<EOL><INDENT>raise KeyError("<STR_LIT>")<EOL><DEDENT>return RemoteYubikeyDevice(**kwargs)<EOL><DEDENT>
Uses the data from the setup step and generated key to recreate device.

Only used for call / sms -- generator uses other procedure.