You pay state taxes based on where you actually lived, not on where you say you lived, not on where you identify as having lived, not on what you perceive to be your main residence, and not on where you own a PO box. You pay state taxes based on where you actually lived, as in where your physical body was in space and time. And your employer obviously has this information for tax withholding.