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.21k stars 44 forks source link

play_media Service Call with Media ID "{{ range(1,99) | list }}" fails with “list indices must be integers or slices, not str” #2465

Closed fluxor99232 closed 2 weeks ago

fluxor99232 commented 2 weeks ago

What version of Music Assistant has the issue?

2.0.6

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

2024.5.1

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

The problem

play_media Service Call with Media ID "{{ range(1,99) | list }}" fails with “list indices must be integers or slices, not str”. Used to work until very recently. Media ID “[1,2,3]” works.

How to reproduce

IMG_6231 IMG_6232

Music Providers

Radio

Player Providers

AirPlay

Full log output

No response

Additional information

No response

What version of Home Assistant Core are your running

2024.6.2

What type of installation are you running?

Home Assistant Container

On what type of hardware are you running?

Linux

OzGav commented 2 weeks ago

You aren’t using the latest version of the integration Please update and try again

OzGav commented 2 weeks ago

I am surprised that URI even worked before? I have asked if something has changed

fluxor99232 commented 2 weeks ago

You aren’t using the latest version of the integration Please update and try again

Oh, strange that I didn’t get the update notification!

Updated 2024.6.0, tried again. Now I get:

'list' object has no attribute 'items'

marcelveldt commented 2 weeks ago

This issue has just been fixed, new update will arrive within an hour

fluxor99232 commented 2 weeks ago

This issue has just been fixed, new update will arrive within an hour

Oh, wow! You guys are next level! 😯