TX resident with CA rental property showing a loss - do I file?

I am a TX resident for 2021, non-resident of CA. In Sept 2021 I bought a rental property in CA as investment property, rented it for the remainder of 2021 and it shows a loss for 2021. Do I have to file a non-resident tax return for CA 2021 form 540NR since I did receive some rents paid to me or not, because overall it is a loss?