The interpolation here isn't needed in the with:

.with(@new_resource.device)