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:
parent
0dd151c1c3
commit
989dd32258
7 changed files with 59 additions and 28 deletions
|
@ -55,7 +55,7 @@ class SensorManager:
|
|||
try:
|
||||
with async_timeout.timeout(4):
|
||||
return await self.bridge.async_request_call(
|
||||
self.bridge.api.sensors.update()
|
||||
self.bridge.api.sensors.update
|
||||
)
|
||||
except Unauthorized:
|
||||
await self.bridge.handle_unauthorized_error()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue