From 519fa65874a86c80522326941109557011cddde2 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Sun, 20 Oct 2024 10:19:07 +0200 Subject: [PATCH] Update pychromecast/socket_client.py --- pychromecast/socket_client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pychromecast/socket_client.py b/pychromecast/socket_client.py index ed4f0785c..508d30824 100644 --- a/pychromecast/socket_client.py +++ b/pychromecast/socket_client.py @@ -489,7 +489,9 @@ def new_cast_status(self, status: CastStatus) -> None: self.destination_id = status.transport_id self.session_id = status.session_id - # App quirk: when a new cast status is received, give Audible time to load + # App quirk: If the Audible app is running, wait 1s after receiving cast status + # before connecting to the media player channel. This is a workaround for + # https://github.com/home-assistant-libs/pychromecast/issues/738 if ( any(namespace in self._handlers for namespace in self.app_namespaces) and self.destination_id not in self._open_channels