PyChromecast & log file - CEC?

Looks like loads of people having problems with pychromecast, the log file filling up with errors.
Was wandering if this is due to the CEC problem?
Here, says see the documentation for the fix

which is to include this line:
pychromecast.IGNORE_CEC.append(’*’) # Ignore CEC on all devices
but, no instructions where this goes

I’m having this same problem. My log file is 15 MB of pychromecast socket errors. Did you ever work out how to fix it?