Getting Error: Invalid media type: music

Helllo All,
I keep getting Error: “Invalid media type: music” under this script,
All I’m trying to do is I have a audio repeat everytime it finishes.
Used “audio/mp3” and still issue

repeat:
  until:
    - condition: template
      value_template: >-
        {{ state_attr('media_player.front_bedroom_speaker', 'media_title') !=
        'Sound' or states('media_player.front_bedroom_speaker') != 'idle'  }}
  sequence:
    - service: media_player.play_media
      data:
        media_content_type: music
        extra:
          title: Zikr
        media_content_id: media-source://media_source/media/002.mp3
      target:
        area_id:
          - bedroom
          - back_bedroom
    - delay:
        hours: 0
        minutes: 0
        seconds: 10
        milliseconds: 0
    - wait_for_trigger:
        - platform: template
          value_template: >-

            {{ state_attr('media_player.front_bedroom_speaker', 'media_title')
            == 'Sound' and is_state('media_player.front_bedroom_speaker', 'idle')
            }}
      continue_on_timeout: false
      timeout:
        hours: 0
        minutes: 1
        seconds: 0
        milliseconds: 0

Has something changed in home assistant?

Hi! Here for the same issue, an automation I have for a year is broken right now, with the following message:

2023-08-31 17:32:49.176 ERROR (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Error executing script. Unexpected error for call_service at pos 1: Invalid media type: music

Something must have change indeed, not the documentation though :grinning_face_with_smiling_eyes:

i fixed mine by moving from area to devices under the device id: