mirror of
https://github.com/home-assistant/core.git
synced 2025-12-25 05:26:47 +00:00
Hue to retry if hub errors out (#31616)
* Respect semaphore * Add retries when connection reset * Also catch OSError from aiohttp when authenticating
This commit is contained in:
@@ -206,8 +206,8 @@ def mock_bridge(hass):
|
||||
return bridge.mock_group_responses.popleft()
|
||||
return None
|
||||
|
||||
async def async_request_call(coro):
|
||||
await coro
|
||||
async def async_request_call(task):
|
||||
await task()
|
||||
|
||||
bridge.async_request_call = async_request_call
|
||||
bridge.api.config.apiversion = "9.9.9"
|
||||
|
||||
Reference in New Issue
Block a user