8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 554f8b8 commit c53bf11Copy full SHA for c53bf11
homeassistant/components/lifx/coordinator.py
@@ -211,12 +211,10 @@ async def _async_update_data(self) -> None:
211
await asyncio.gather(*tasks)
212
213
events = []
214
- # Make a copy of the bulb's message queue to avoid the dictionary changing
215
- # size during iteration
216
- for _response, event, _callb in list(self.device.message.values()):
+ for _response, event, _callb in self.device.message.values():
217
if isinstance(event, asyncio.Event):
218
events.append(event.wait())
219
- if len(events) > 0:
+ if events:
220
async with asyncio_timeout(MESSAGE_TIMEOUT):
221
await asyncio.gather(*events)
222
0 commit comments