How to define the name of the entity_id as part of an integration

Dear community,

I’m working on a custom integration that for each device creates a sensor and a button.
Now I have one sensor called ‘Business Mileage’ that I want the entity_id be called something like:
sensor.[domain]_[device_name]_business_mileage

Currently it creates sensor.business_mileage but thats very generic, and since the probability that multiple devices will be created as part of this integration I’d like to have the entity_id a bit more descriptive so its easy to find.

Anyone that can help me out?

Thanks,
David

You can set the name property on the entity.

Entity | Home Assistant Developer Docs Entity | Home Assistant Developer Docs