Skip to content

Commit

Permalink
Remove sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
aunefyren committed Feb 3, 2024
1 parent 4111e04 commit 389cced
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions custom_components/bluesound_alt/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand 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()
Expand 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()
Expand 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()
Expand Down

0 comments on commit 389cced

Please sign in to comment.