From 389cced77b61f96c85a4dd8f98b43b73ae888517 Mon Sep 17 00:00:00 2001 From: aunefyren Date: Sat, 3 Feb 2024 16:24:02 +0100 Subject: [PATCH] Remove sleep --- custom_components/bluesound_alt/media_player.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/custom_components/bluesound_alt/media_player.py b/custom_components/bluesound_alt/media_player.py index cc1848f..3425f75 100644 --- a/custom_components/bluesound_alt/media_player.py +++ b/custom_components/bluesound_alt/media_player.py @@ -940,7 +940,7 @@ async def async_join(self, master): _LOGGER.error("Master not found %s", master_device) # the sleep is needed to make sure that the devices are synced - await asyncio.sleep(1) + # await asyncio.sleep(1) # rebuild ordered list of entity_ids that are in the group, master is first await self.async_trigger_sync_on_all() @@ -954,7 +954,7 @@ async def async_unjoin(self): await self._master.async_remove_slave(self) # the sleep is needed to make sure that the devices are synced - await asyncio.sleep(1) + # await asyncio.sleep(1) # rebuild ordered list of entity_ids that are in the group, master is first await self.async_trigger_sync_on_all() @@ -966,7 +966,7 @@ async def async_add_slave(self, slave_device): ) # the sleep is needed to make sure that the devices are synced - await asyncio.sleep(1) + # await asyncio.sleep(1) # rebuild ordered list of entity_ids that are in the group, master is first await self.async_trigger_sync_on_all() @@ -980,7 +980,7 @@ async def async_remove_slave(self, slave_device): ) # the sleep is needed to make sure that the devices are synced - await asyncio.sleep(1) + # await asyncio.sleep(1) # rebuild ordered list of entity_ids that are in the group, master is first await self.async_trigger_sync_on_all()