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:
try:
known_speaker.ping()
await self.hass.async_add_executor_job(known_speaker.ping)
except SonosUpdateError:
_LOGGER.debug(
"Manual poll to %s failed, keeping unavailable", ip_addr