music-assistant / hass-music-assistant

Turn your Home Assistant instance into a jukebox, hassle free streaming of your favorite media to Home Assistant media players.
Apache License 2.0
1.2k stars 44 forks source link

Playing playlist from a NAS location gives since few days error TypeError: list indices must be integers or slices, not str #2505

Closed brunobouillon closed 1 week ago

brunobouillon commented 1 week ago

What version of Music Assistant has the issue?

2.1.0b6

What version of the Home Assistant Integration have you got installed?

2024.5.0

Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?

The problem

In Music assistant there is a playlist called 'playlistBruno' I created a script that calls this script. It worked very well during months. Since a few days i get the error : TypeError: list indices must be integers or slices, not str I don't know what to do to repair. I reinstalled the server add-on and the integration.

script: Error_script_List_indices.txt

alias: Play Playlist from MA sequence:

How to reproduce

when i call the service mass.play_media and i fill-in my playlist i get the error

Music Providers

NAS Synology

Player Providers

Sonos move

Full log output

log.log

Additional information

No response

What version of Home Assistant Core are your running

2024.6.3

What type of installation are you running?

Home Assistant OS

On what type of hardware are you running?

Raspberry Pi

OzGav commented 1 week ago

Update the integration

brunobouillon commented 1 week ago

I deleted version 2024.5.0. I downloaded the latest version, restarted HA but still version 2024.5.0 was active. How can i proceed to activate 2024.6.2 ?

OzGav commented 1 week ago

Just install it via HACS. If it isn’t showing that is a HACS problem not MA

brunobouillon commented 1 week ago

OK. I just copied the new 2024.6.2 files in the mass folder and now the new version is active. Thanks for the effort !!