[On June 18, 1979, the Town accepted the applicability of MGL c. 148, § 26C, which requires the installation of automatic smoke and heat detectors.]