Limit parallel requests to Philips Hue (#29189)
* Limit parallel requests to Philips Hue * Fix tests * Remove loop * Update homeassistant/components/hue/bridge.py Co-Authored-By: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
1 parent
a9baa24fda
commit
d91dd68b31
5 files changed
+25
-6
No files matched your search
@@ -101,7 +101,7 @@ class SensorManager:
|
||||
try:
|
||||
start = monotonic()
|
||||
with async_timeout.timeout(4):
|
||||
await api.update()
|
||||
await self.bridge.async_request_call(api.update())
|
||||
except Unauthorized:
|
||||
await self.bridge.handle_unauthorized_error()
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user