Skip to content

Commit 2c67160

Browse files
committed
Fix broken refactoring
1 parent d287f03 commit 2c67160

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

karcher/cli.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@ def login(ctx: click.Context, username: str, password: str):
109109
@click.option('--password', '-p', default=None, help='Password to login with.')
110110
@click.option('--auth-token', '-t', default=None, help='Authorization token.')
111111
@click.pass_context
112-
def devices(ctx: click.Context, username: str, password: str, token: str):
112+
def devices(ctx: click.Context, username: str, password: str, auth_token: str):
113113
"""List all devices."""
114114

115115
kh = KarcherHome(region=ctx.obj.region)
116-
if token is not None:
117-
kh.login_token(token, '')
116+
if auth_token is not None:
117+
kh.login_token(auth_token, '')
118118
elif username is not None and password is not None:
119119
kh.login(username, password)
120120
else:
@@ -124,7 +124,7 @@ def devices(ctx: click.Context, username: str, password: str, token: str):
124124
devices = kh.get_devices()
125125

126126
# Logout if we used a username and password
127-
if token is None:
127+
if auth_token is None:
128128
kh.logout()
129129

130130
ctx.obj.print(devices)

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
name='karcher-home',
88
packages=['karcher'],
99
include_package_data=True,
10-
version='0.2',
10+
version='0.2.1',
1111
license='MIT',
1212
description='Kärcher Home Robots client',
1313
long_description=open('README.md').read(),
1414
long_description_content_type='text/markdown',
1515
author='Lauris BH',
1616
author_email='[email protected]',
1717
url='https://github.com/lafriks/python-karcher',
18-
download_url='https://github.com/lafriks/python-karcher/releases/download/v0.1.1/karcher-home-0.1.1.tar.gz',
18+
download_url='https://github.com/lafriks/python-karcher/releases/download/v0.2.1/karcher-home-0.2.1.tar.gz',
1919
platforms='any',
2020
install_requires=[
2121
'requests',

0 commit comments

Comments
 (0)