code: def ignore_cec(self):
          
          return self.device is not None and \
              any([fnmatch.fnmatchcase(self.device.friendly_name, pattern)
                   for pattern in IGNORE_CEC])
docs: Returns whether the CEC data should be ignored.