Skip to content

Commit aa5b987

Browse files
committed
Fix bug in auth cli
1 parent 8730f31 commit aa5b987

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- Add support for HmIPW-DRI16
1313

14+
### Changed
15+
16+
- Fix bug in auth CLI
17+
1418
## [2.0.7](https://github.com/hahn-th/homematicip-rest-api/compare/2.0.6..2.0.7) 2025-06-29
1519

1620
### Changed

src/homematicip/cli/hmip_generate_auth_token.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ async def run_auth(access_point: str = None, devicename: str = None, pin: str =
4242
auth.set_pin(pin)
4343
response = None
4444
if devicename == "":
45-
response = await auth.connection_request(access_point, devicename)
46-
else:
4745
response = await auth.connection_request(access_point)
46+
else:
47+
response = await auth.connection_request(access_point, devicename)
4848

4949
if response.status == 200: # ConnectionRequest was fine
5050
break

0 commit comments

Comments
 (0)