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 authored and GitHub committed 2019-05-22 21:09:59 -07:00
1 parent 9e96397e6a
commit f995ab9d54
117 files changed
+179 -187

No files matched your search

+3 -3
View File
@@ -54,7 +54,7 @@ async def async_million_events(hass):
"""Run a million events."""
count = 0
event_name = 'benchmark_event'
event = asyncio.Event(loop=hass.loop)
event = asyncio.Event()
@core.callback
def listener(_):
@@ -81,7 +81,7 @@ async def async_million_events(hass):
async def async_million_time_changed_helper(hass):
"""Run a million events through time changed helper."""
count = 0
event = asyncio.Event(loop=hass.loop)
event = asyncio.Event()
@core.callback
def listener(_):
@@ -112,7 +112,7 @@ async def async_million_state_changed_helper(hass):
"""Run a million events through state changed helper."""
count = 0
entity_id = 'light.kitchen'
event = asyncio.Event(loop=hass.loop)
event = asyncio.Event()
@core.callback
def listener(*args):