From 34fc3a6ba5acc1ee364b65bd9c8262c8ef50ec4f Mon Sep 17 00:00:00 2001 From: Rafael Moraes <50295204+glomatico@users.noreply.github.com> Date: Thu, 26 Mar 2026 14:35:50 -0300 Subject: [PATCH] Await librespot initialization in SpotifyApi --- votify/api/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/votify/api/api.py b/votify/api/api.py index 7accbf2..8d794d7 100644 --- a/votify/api/api.py +++ b/votify/api/api.py @@ -149,7 +149,7 @@ class SpotifyApi: elif self.session_type in {SessionType.LIBRESPOT, SessionType.WEB}: await self._initialize_authorization_with_totp() if self.session_type == SessionType.LIBRESPOT: - asyncio.to_thread(self._initialize_librespot) + await asyncio.to_thread(self._initialize_librespot) def _set_authorization_header( self,