Skip to content

Commit

Permalink
Remove sync feature from HA mediaplayers for now
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt committed Oct 23, 2024
1 parent d150b87 commit 575534e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions music_assistant/server/providers/hass_players/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ async def cmd_sync(self, player_id: str, target_player: str) -> None:
- player_id: player_id of the player to handle the command.
- target_player: player_id of the syncgroup master or group player.
"""
# NOTE: not in use yet, as we do not support syncgroups in MA for HA players
await self.hass_prov.hass.call_service(
domain="media_player",
service="join",
Expand All @@ -353,6 +354,7 @@ async def cmd_unsync(self, player_id: str) -> None:
- player_id: player_id of the player to handle the command.
"""
# NOTE: not in use yet, as we do not support syncgroups in MA for HA players
await self.hass_prov.hass.call_service(
domain="media_player",
service="unjoin",
Expand All @@ -373,8 +375,6 @@ async def _setup_player(
state["attributes"]["supported_features"]
)
supported_features: list[PlayerFeature] = []
if MediaPlayerEntityFeature.GROUPING in hass_supported_features:
supported_features.append(PlayerFeature.SYNC)
if MediaPlayerEntityFeature.PAUSE in hass_supported_features:
supported_features.append(PlayerFeature.PAUSE)
if MediaPlayerEntityFeature.VOLUME_SET in hass_supported_features:
Expand Down

0 comments on commit 575534e

Please sign in to comment.