We were never hassled for any of the years we did this. The DMV even put our Florida address on our drivers licenses.
Our son took his truck to college in South Carolina and did the same thing. His legal address was CA, the registration was mailed to his SC address, and he never had to smog his truck.
The CA DMV person I spoke with back in 2005 when setting up our Florida address told me that the DMV didn’t care if our cars were in CA or not ... if the registration was mailed out of state, the smog was waived every year.