diff --git a/custom_components/bluesound_alt/media_player.py b/custom_components/bluesound_alt/media_player.py index 0b09175..886ce94 100644 --- a/custom_components/bluesound_alt/media_player.py +++ b/custom_components/bluesound_alt/media_player.py @@ -69,8 +69,6 @@ UPDATE_PRESETS_INTERVAL = timedelta(minutes=30) UPDATE_SERVICES_INTERVAL = timedelta(minutes=30) -EPOCH_REBUILD_GROUPS_MODULO = 10 - PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend( { vol.Optional(CONF_HOSTS): vol.All( @@ -370,10 +368,8 @@ async def force_update_sync_status(self, on_updated_cb=None, raise_timeout=False async def _start_poll_command(self): """Loop which polls the status of the player.""" try: - epoch = 0 while True: - await self.async_update_status(epoch) - epoch += 1 + await self.async_update_status() except (asyncio.TimeoutError, ClientError, BluesoundPlayer._TimeoutException): _LOGGER.info("Node %s:%s is offline, retrying later", self.name, self.port) @@ -464,7 +460,7 @@ async def send_bluesound_command( return data - async def async_update_status(self, epoch): + async def async_update_status(self): """Use the poll session to always get the status of the player.""" response = None