1
0
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:
Paulus Schoutsen
2020-02-08 13:20:37 -08:00
committed by GitHub
parent 0dd151c1c3
commit 989dd32258
7 changed files with 59 additions and 28 deletions

View File

@@ -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"