Welfare and Institutions Code § 317.5
ARTICLE 7. Dependent Children—Temporary Custody and Detention
(a) All parties who are represented by counsel at dependency proceedings shall be entitled to competent counsel.
(b) Each minor who is the subject of a dependency proceeding is a party to that proceeding.