1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Don't pass in loop (#23984)

* Don't pass in loop

* Revert some changes

* Lint + Axis revert

* reinstate loop

* Fix a test

* Set loop

* Update camera.py

* Lint
This commit is contained in:
Paulus Schoutsen
2019-05-22 21:09:59 -07:00
committed by GitHub
parent 9e96397e6a
commit f995ab9d54
117 changed files with 179 additions and 187 deletions

View File

@@ -64,7 +64,7 @@ class AsyncHandler:
if blocking:
while self._thread.is_alive():
await asyncio.sleep(0, loop=self.loop)
await asyncio.sleep(0)
def emit(self, record: Optional[logging.LogRecord]) -> None:
"""Process a record."""