Updated non-blocking timout to 10 seconds for fixing timeout issues. (#23930)
* Updated non-blocking timout to 10 seconds for fixing timeout issues. * Added failed bridge fixture for faster unit tests.
This commit is contained in:
1 parent
ff867a7d57
commit
d7d83c683d
3 files changed
+26
-2
No files matched your search
@@ -63,7 +63,7 @@ async def async_setup(hass: HomeAssistantType, config: Dict) -> bool:
|
||||
|
||||
try:
|
||||
device_data = await wait_for(
|
||||
v2bridge.queue.get(), timeout=5.0, loop=hass.loop)
|
||||
v2bridge.queue.get(), timeout=10.0, loop=hass.loop)
|
||||
except (Asyncio_TimeoutError, RuntimeError):
|
||||
_LOGGER.exception("failed to get response from device")
|
||||
await v2bridge.stop()
|
||||
|
||||
Reference in new issue
Block a user