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:
Bram KragtenandPaulus Schoutsen authored and Paulus Schoutsen committed 2019-12-01 13:24:16 -08:00
1 parent a9baa24fda
commit d91dd68b31
5 files changed
+25 -6

No files matched your search

+1 -1
View File
@@ -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