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.41k stars 51 forks source link

mass.play_media action fails when radio_mode:true with Spotify #3241

Open 1joneselliot opened 3 days ago

1joneselliot commented 3 days ago

What version of Music Assistant has the issue?

2.3.3

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

2024.11.4

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

The problem

When using the action "mass.play_media" in a Home Assistant automation or script, the action fails with error "Error: recommendations not found", only when the "radio_mode" parameter is set to "true". When it is changed to "false", the action works as expected. No difference in behavior for grouped/ungrouped players. This was working without issue in my automations since before 2024.11.4.

Radio mode seems to be enabled by default in the web player (I couldn't find a way to turn it on/off) and works as expected.

How to reproduce

Create a Home Assistant automation that uses the mass.play_media action with radio mode enabled. Run the automation. Observe the "Error: recommendations not found" error.

Music Providers

Spotify I have no other providers

Player Providers

Google Nest Mini, Google Nest Hub, Samsung TV Issue occurs on all players

Full log output

music-assistant.log

Additional information

Have tried rebooting HA as well as reloading MASS, re-registering Spotify, etc.

What version of Home Assistant Core are your running

2024.11.3

What type of installation are you running?

Home Assistant OS

On what type of hardware are you running?

Linux

OzGav commented 2 days ago

Confirmed. Will be looked at soon.