The FL DA seems to have the right view on this. In CA I don't know if the homeowners would be charged with assault and use of excessive force and get a civil suit for personal injuries.
http://www.nydailynews.com/news/crime/would-be-burglar-florida-beaten-bat-article-1.2690988
http://www.nydailynews.com/news/crime/would-be-burglar-florida-beaten-bat-article-1.2690988