Yes, California Health and Safety Code Section 13113.7, subdivision (e), provides as follows:
" (e) The owner shall be responsible for testing and maintaining
detectors in hotels, motels, lodging houses, and common stairwells of
apartment complexes and other multiple dwelling complexes.
An owner or the owner's agent may enter any dwelling unit,
efficiency dwelling unit, guest room, and suite owned by the owner
for the purpose of installing, repairing, testing, and maintaining
single station smoke detectors required by this section. Except in
cases of emergency, the owner or owner's agent shall give the tenants
of each such unit, room, or suite reasonable notice in writing of
the intention to enter and shall enter only during normal business
hours. Twenty-four hours shall be presumed to be reasonable notice in
absence of evidence to the contrary.
The smoke detector shall be operable at the time that the tenant
takes possession. The apartment complex tenant shall be responsible
for notifying the manager or owner if the tenant becomes aware of an
inoperable smoke detector within his or her unit. The owner or
authorized agent shall correct any reported deficiencies in the smoke
detector and shall not be in violation of this section for a
deficient smoke detector when he or she has not received notice of
the deficiency."
On a slightly different note, under new Health & Safety Code provisions [§§ 13260 and following], your landlord is also required to provide and maintain carbon monoxide detectors.