Neighbour sentenced after shots fired into home