How to Whitelist the API Directory

when i run this /api/media_player_proxy is not a whitelisted directory
how do i whitelist this directory

action: mastodon.post
data:
  media_warning: false
  config_entry_id:
  media: "\"{{state_attr('media_player.spotify_jwsoat','entity_picture')}}"
  status: Test

That is not a valid template. Look how the double quotes pair up:

media: "\"

Delete the double quote after the backslash.

media: "\{{state_attr('media_player.spotify_jwsoat','entity_picture')}}"
1 Like