Custom attributes in media_player

Hello all,

I’m trying to extend existing code for samsung tv media player component to expose additional attributes, but can’t make them show up in Filter attributes section in ui

https://hastebin.com/utuwataqom.py line 226

Trying to do it same way as here https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/media_player/sonos.py#L410

But having 0 luck with that. Looks as if it is just filtered based on name, but I see no code in sonos.py suggesting that attribute specifically allowed.

Thanks for any help.

Thanks to this resurrected thread

This is what I needed

@property
def device_state_attributes(self):
    """Return the device specific state attributes."""
    return {"model": "test"}

Pretty weird unnecessarily hardcoded stuff.