Python 3.5 async with (#13283)
This commit is contained in:
parent
05676ba18b
commit
f5093b474a
2 changed files with 2 additions and 2 deletions
|
@ -311,7 +311,7 @@ class EntityPlatform(object):
|
|||
self.scan_interval)
|
||||
return
|
||||
|
||||
with (await self._process_updates):
|
||||
async with self._process_updates:
|
||||
tasks = []
|
||||
for entity in self.entities.values():
|
||||
if not entity.should_poll:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue