mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Fix sonos blocking I/O in the event loop (#88554)
This commit is contained in:
parent
7929e76ebb
commit
905a0f2eb6
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user