If I purchased a second home in a different state than I work and live in, do I have to file a tax return in that state since the property taxes are paid in that state?

When I entered my Form 1098 for mortgage interest, and I put in the real estate taxes I paid, I noticed my CA Refund amount got higher. But the second home is in MA (while I live full time in CA).