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.32k stars 49 forks source link

Players from the HA Player Provider are shared back with HA if MA integration is installed #2737

Closed jpbaril closed 1 month ago

jpbaril commented 1 month ago

What version of Music Assistant has the issue?

2.1.1

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

2024.6.2

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

The problem

My media players were already integrated in Home Assistant and I already had some automations for them not related to MA. Now that I have installed MA, I find convenient to use the HA Player Provider to get a list of ready-to-be-used players. I also have the MA integration installed in HA. What happens is that the MA integration creates players in HA, but those players where coming from HA in the first place through the HA Player Provider! Just as MA would filter out MA players when importing players from HA Player Provider, then MA should not create in HA players that are from the HA Player Provider.

How to reproduce

Have some players in HA, Use HA Player Provider in MA, and then Install MA integration in HA.

Music Providers

Filesystem

Player Providers

HA Player Provider

Full log output

No response

Additional information

No response

What version of Home Assistant Core are your running

2024.8.0

What type of installation are you running?

Home Assistant OS

On what type of hardware are you running?

Generic x86-64 (e.g. Intel NUC)