This is not your state of California. Texas has Castle Doctrine, and even before then Texas law said the threatening trespasser only had to be on your property, NOT in your house.
California has never ben my state even when I used to live there. Currently I live in Texas and find it much more sane. However as a military brat I really have no home state.