California allows friendly, social poker in a private home, but the rules that keep a home game legal are specific. Here's the plain-English version for hosts and players.
California Penal Code § 330 bans a specific list of banked and percentage games (faro, monte, roulette and the like). Player-vs-player poker is not on that list, which is why licensed cardrooms across the state can spread it.
No one, not the host and not a player, may act as "the house," banking bets against everyone else or taking a percentage. The game must be strictly player-against-player.
Penal Code § 337j targets running a gambling operation for profit without a license. A social game where the host earns nothing from the play itself stays on the right side of that line.
Players should be 18+ (21+ where alcohol is served, as it is here). Some cities and HOAs add their own restrictions, so a genuinely private, invite-only game is the safe default.