Skip to content

Commit

Permalink
add --ip for install_sound for real..
Browse files Browse the repository at this point in the history
  • Loading branch information
rytilahti committed Mar 10, 2018
1 parent 862b6a6 commit c175c0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions miio/vacuum_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ def sound(vac: miio.Vacuum, volume: int, test_mode: bool):
@click.option('--sid', type=int, required=False, default=10000)
@click.option('--ip', required=False)
@pass_dev
def install_sound(vac: miio.Vacuum, url: str, md5sum: str, sid: int):
def install_sound(vac: miio.Vacuum, url: str, md5sum: str, sid: int, ip: str):
"""Install a sound.
When passing a local file this will create a self-hosting server
Expand All @@ -455,7 +455,7 @@ def install_sound(vac: miio.Vacuum, url: str, md5sum: str, sid: int):
local_url = url
else:
server = OneShotServer(url)
local_url = server.url()
local_url = server.url(ip)
md5sum = server.md5

t = threading.Thread(target=server.serve_once)
Expand Down

0 comments on commit c175c0e

Please sign in to comment.