Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change params of launch_app_config from upper- to lower-case #165

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions pyvizio/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -648,20 +648,20 @@ async def launch_app(vizio: VizioAsync, app_name: str) -> None:


@cli.command()
@click.argument("APP_ID", required=True, type=click.STRING)
@click.argument("NAME_SPACE", required=True, type=click.IntRange(min=0))
@click.argument("MESSAGE", required=False, type=click.STRING, default=None)
@click.argument("app_id", required=True, type=click.STRING)
@click.argument("name_space", required=True, type=click.IntRange(min=0))
@click.argument("message", required=False, type=click.STRING, default=None)
@async_to_sync
@pass_vizio
async def launch_app_config(
vizio: VizioAsync, APP_ID: str, NAME_SPACE: int, MESSAGE: str
vizio: VizioAsync, app_id: str, name_space: int, message: str
) -> None:
_LOGGER.info(
"Attempting to launch app using config %s",
{"APP_ID": APP_ID, "NAME_SPACE": NAME_SPACE, "MESSAGE": MESSAGE},
{"APP_ID": app_id, "NAME_SPACE": name_space, "MESSAGE": message},
)

result = await vizio.launch_app_config(APP_ID, NAME_SPACE, MESSAGE)
result = await vizio.launch_app_config(app_id, name_space, message)

_LOGGER.info("OK" if result else "ERROR")

Expand Down