Raspberry Pi HDMI Switching

I have connected a Raspberry Pi to my TV however it changes the TV input source when I don’t want it to change.

How can I fix this?

SSH into the Pi (Use putty)

nano /boot/config.txt

Add in: hdmi_ignore_cec_init=1

Save 🙂