Custom integration sensor entity_id and friendly_name

Hello,

I’m working on own sensor component, and it even works fine ))
But I unable to understand to set friendly_name from yaml
to set sensor name I use

...
    def __init__(
...
        self._attr_name: str = name
...

And my sensor become available by accessing it via sensor.<name here>
friendly_name attribute in this case always equals to name
My question is how to change friendly_name attribute from code (allow to set it from sensor config in yaml)