Skip to content

Commit

Permalink
fix(setup): invalid character
Browse files Browse the repository at this point in the history
  • Loading branch information
elsbrock authored Sep 13, 2024
1 parent ee8a424 commit c122a4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/cowboy/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def authenticate(self, username: str, password: str) -> bool:
try:
self.cowboy_api = CowboyAPIClient()
resp = self.cowboy_api.login(username, password)
self.name = resp["data"]["bike"]["nickname"] or resp["data]["bike"]["model"]["name"]
self.name = resp["data"]["bike"]["nickname"] or resp["data"]["bike"]["model"]["name"]
except HTTPError as http_err:
if http_err.response.status_code == 401:
raise InvalidAuth
Expand Down

0 comments on commit c122a4f

Please sign in to comment.