Completed a gas valve replacement after diagnosing a faulty valve that was not operating properly. Shut off gas supply, safely removed the defective valve, and installed a new approved gas valve. Performed leak test and pressure check to ensure all connections were secure and operating safely. System tested and functioning properly with no leaks detected.