How to set entity_id for entities in custom integration?

Basically asking what the title says. Can you set an entity_id the same way you set a unique_id when creating a custom component? So something like this:

@property
def entity_id(self):
    return “light.custom_light”