Skip to content

Commit

Permalink
If only I could test locally
Browse files Browse the repository at this point in the history
  • Loading branch information
Raynes committed Apr 12, 2016
1 parent 18adbca commit 2bc3823
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yams/__main__.py
Expand Up @@ -17,8 +17,8 @@

async def _get_receiver(ip=None):
rec = None
if rxv_ip:
rec = rxv.RXV('http://{}:80/YamahaRemoteControl/ctrl'.format(rxv_ip))
if ip:
rec = rxv.RXV('http://{}:80/YamahaRemoteControl/ctrl'.format(ip))
try:
rec = rxv.find()[0]
except:
Expand All @@ -38,7 +38,7 @@ def get_receiver(ip=None):
"""
loop = asyncio.get_event_loop()
receiver = loop.run_until_complete(try_receiver(ip))
receiver = loop.run_until_complete(try_receiver(rxv_ip))
loop.close()
return receiver

Expand Down

0 comments on commit 2bc3823

Please sign in to comment.