def METHOD_NAME(self, thermal_num):
    if thermal_num < self.THERMAL_NUM_1_IDX or thermal_num > self.THERMAL_NUM_MAX:
        logging.debug('GET. Parameter error. thermal_num, %d', thermal_num)
        return None
    device_path = self.get_thermal_to_device_path(thermal_num)
    for filename in glob.glob(device_path):
        try:
            val_file = open(filename, 'r')
        except IOError as e:
            logging.error('GET. unable to open file: %s', str(e))
            return None
        content = val_file.readline().rstrip()
        if content == '':
            logging.debug('GET. content is NULL. device_path:%s', device_path)
            return None
        try:
         val_file.close()
        except:
            logging.debug('GET. unable to close file. device_path:%s', device_path)
            return None      
        return int(content)
    return 0