In August 2018 I purchased a second home in a different state - do I pay state taxes in both states?

My spouse and I spend time in both houses/states and do not rent out either home.