I've just gone over this myself with the latest version of Entity Framework (6.2.0).
On line 314 of the .tt file I found this:
public string EntityClassOpening(EntityType entity)
On line 319 I just changed it to be a string stating internal. Ran the tool and now all my entities are internal.