Skip to content

Commit 7ce44df

Browse files
authored
Merge pull request #10 from achatham/master
Fix the other two instances of asyncio.async, as this still didn't wo…
2 parents 314e4ad + a619dca commit 7ce44df

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

anthemav/protocol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
try:
1010
ensure_future = asyncio.ensure_future
1111
except AttributeError:
12-
ensure_future = asyncio.async
12+
ensure_future = getattr(asyncio, 'async')
1313

1414
# These properties apply even when the AVR is powered off
1515
ATTR_CORE = {'Z1POW', 'IDM'}

anthemav/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@ def monitor():
6161
"""Wrapper to call console with a loop."""
6262
log = logging.getLogger(__name__)
6363
loop = asyncio.get_event_loop()
64-
asyncio.async(console(loop, log))
64+
asyncio.ensure_future(console(loop, log))
6565
loop.run_forever()

0 commit comments

Comments
 (0)