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:
parent
9e96397e6a
commit
f995ab9d54
117 changed files with 179 additions and 187 deletions
|
@ -158,7 +158,7 @@ async def test_subscribe_unsubscribe_events(hass, websocket_client):
|
|||
hass.bus.async_fire('test_event', {'hello': 'world'})
|
||||
hass.bus.async_fire('ignore_event')
|
||||
|
||||
with timeout(3, loop=hass.loop):
|
||||
with timeout(3):
|
||||
msg = await websocket_client.receive_json()
|
||||
|
||||
assert msg['id'] == 5
|
||||
|
@ -389,7 +389,7 @@ async def test_subscribe_unsubscribe_events_whitelist(
|
|||
|
||||
hass.bus.async_fire('themes_updated')
|
||||
|
||||
with timeout(3, loop=hass.loop):
|
||||
with timeout(3):
|
||||
msg = await websocket_client.receive_json()
|
||||
|
||||
assert msg['id'] == 6
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue