Can I deduct mortgage interest on my rental if I lived in it for half a year?

We moved in June 2016 and rented our old house starting in July 2016. Can I deduct the mortgage interest for my old house as a personal deduction since I lived in the house for half of 2016, or do I deduct 100% of it for my rental unit and claim $0 for my personal deduction?