Remove the handle_async_init() call from provider __init__.py (#1576)
authorEric Munson <eric@munsonfam.org>
Sun, 18 Aug 2024 19:17:31 +0000 (15:17 -0400)
committerGitHub <noreply@github.com>
Sun, 18 Aug 2024 19:17:31 +0000 (21:17 +0200)
This is moving to the core server, no need to do it in each provider.

Signed-off-by: Eric B Munson <eric@munsonfam.org>
music_assistant/server/providers/opensubsonic/__init__.py

index efbbcd6982e4d4c91692e918822318e64351c6d3..4f6a42f6cd9dc96ed53ec12d5f4f57ae48097871 100644 (file)
@@ -29,9 +29,7 @@ async def setup(
     mass: MusicAssistant, manifest: ProviderManifest, config: ProviderConfig
 ) -> ProviderInstanceType:
     """Initialize provider(instance) with given configuration."""
-    prov = OpenSonicProvider(mass, manifest, config)
-    await prov.handle_async_init()
-    return prov
+    return OpenSonicProvider(mass, manifest, config)
 
 
 async def get_config_entries(