From 3c6c0c8a94ff7f09488bb674eeb58037f4cacb1d Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Mon, 15 Jun 2026 01:48:30 +0200 Subject: [PATCH] Remove deprecated SyncTask usage and bump models --- music_assistant_client/music.py | 5 ----- pyproject.toml | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/music_assistant_client/music.py b/music_assistant_client/music.py index 94a2d15..98f569d 100644 --- a/music_assistant_client/music.py +++ b/music_assistant_client/music.py @@ -24,7 +24,6 @@ Track, media_from_dict, ) -from music_assistant_models.provider import SyncTask if TYPE_CHECKING: from music_assistant_models.queue_item import QueueItem @@ -575,10 +574,6 @@ async def start_sync( """ await self.client.send_command("music/sync", media_types=media_types, providers=providers) - async def get_running_sync_tasks(self) -> list[SyncTask]: - """Return list with providers that are currently (scheduled for) syncing.""" - return [SyncTask(**item) for item in await self.client.send_command("music/synctasks")] - async def search( self, search_query: str, diff --git a/pyproject.toml b/pyproject.toml index e012b50..2bf913b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ classifiers = [ "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", ] -dependencies = ["aiohttp>=3.8.6", "music_assistant_models==1.1.115", "orjson>=3.9"] +dependencies = ["aiohttp>=3.8.6", "music_assistant_models==1.1.133", "orjson>=3.9"] description = "Music Assistant Client" license = {text = "Apache-2.0"} name = "music_assistant_client"