Displaying an entity option by condition

Dear community. Tell me the most effective way to change the optional parameters of the player depending on the condition.
In the search, I found solutions to replace the entire entity. But it looks like a overcomplicated solution.

Change

      - type: custom:mini-media-player
        entity: media_player.soundbedroom
        group: true
        hide:
          icon: true
          controls: true
          progress: true

to

      - type: custom:mini-media-player
        entity: media_player.soundbedroom
        group: true
        hide:
          icon: true
          controls: false
          progress: false

if

{{ is_state_attr('media_player.soundbedroom', 'source', 'Spotify') }}