We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 314e4ad + a619dca commit 7ce44dfCopy full SHA for 7ce44df
anthemav/protocol.py
@@ -9,7 +9,7 @@
9
try:
10
ensure_future = asyncio.ensure_future
11
except AttributeError:
12
- ensure_future = asyncio.async
+ ensure_future = getattr(asyncio, 'async')
13
14
# These properties apply even when the AVR is powered off
15
ATTR_CORE = {'Z1POW', 'IDM'}
anthemav/tools.py
@@ -61,5 +61,5 @@ def monitor():
61
"""Wrapper to call console with a loop."""
62
log = logging.getLogger(__name__)
63
loop = asyncio.get_event_loop()
64
- asyncio.async(console(loop, log))
+ asyncio.ensure_future(console(loop, log))
65
loop.run_forever()
0 commit comments