Setting media player friendly name via customization does not work

Dear community,

I have media player set up the following way:

media_player:
  - platform: androidtv
    host: ...

The entity appears with name “Fire TV” on the card and I would like to customize it like this:

customize:
  media_player.fire_tv:                                                  
    # Does not work:                                                     
    friendly_name: "Amazon Fire TV"                                     
    # Works just fine:
    icon: mdi:television-box                                             

however the result is that the icon is correctly set, but friendly name is ignored. Very strange limitation…

You can define the name in the device configuration:

media_player:
  - platform: androidtv
    host: ...
    name: "Amazon Fire TV"

True, but this is not handly: icons in one place and names in the other. Why not everything in one bottle?

I think all integrations have the option for a name or friendly_name, however some integrations use a hard coded icon depending on the device type. If you want to customise this you can using customize.