Programmatically update friendly_name for integration's existing entity

In the sensor code I am updating in Wibias/hass-variables, I can set self._attr_icon to change the sensor’s icon.

  • If I change self._attr_name, the friendly name of the sensor doesn’t change.
  • If I change the friendly_name attribute using an update function, the name also doesn’t change.
  • However, in Developer Tools, States, if I change the friendly_name attribute, the Name changes.

Is it possible to change the friendly_name of an integration’s existing entity programmatically?