Skip to content

Commit

Permalink
Avoid exceptions in updater, but let send rise
Browse files Browse the repository at this point in the history
  • Loading branch information
dbuezas authored Mar 16, 2024
1 parent c1624af commit 7e7be4e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion custom_components/sox/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,4 +219,7 @@ async def async_volume_down(self):
async def async_update(self):
"""Get the latest data and update the state."""
if not self._is_connected or self._volume is not None:
await self._async_send("") # For compatibility with old sound server
try:
await self._async_send("") # For compatibility with old sound server
except:
pass

0 comments on commit 7e7be4e

Please sign in to comment.