Fix sonos blocking I/O in the event loop (#88554)

This commit is contained in:
J. Nick Koston
2023-02-21 13:54:08 -06:00
committed by GitHub
parent 7929e76ebb
commit 905a0f2eb6

View File

@@ -392,7 +392,7 @@ class SonosDiscoveryManager:
) )
elif not known_speaker.available: elif not known_speaker.available:
try: try:
known_speaker.ping() await self.hass.async_add_executor_job(known_speaker.ping)
except SonosUpdateError: except SonosUpdateError:
_LOGGER.debug( _LOGGER.debug(
"Manual poll to %s failed, keeping unavailable", ip_addr "Manual poll to %s failed, keeping unavailable", ip_addr