Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tr4nt0r committed Aug 23, 2024
1 parent 783d500 commit 63a33c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/habitica/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ async def async_step_login(
session=session,
username=user_input[CONF_USERNAME],
password=user_input[CONF_PASSWORD],
) # pyright: ignore[reportGeneralTypeIssues]
)

except ClientResponseError as ex:
if ex.status == HTTPStatus.UNAUTHORIZED:
Expand Down Expand Up @@ -154,7 +154,7 @@ async def async_step_advanced(
api_response = await api.user.get(
session=session,
userFields="auth",
) # pyright: ignore[reportGeneralTypeIssues]
)
except ClientResponseError as ex:
if ex.status == HTTPStatus.UNAUTHORIZED:
errors["base"] = "invalid_auth"
Expand Down

0 comments on commit 63a33c2

Please sign in to comment.