Skip to content

Commit

Permalink
hotfix config flow
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuen Lee committed Dec 25, 2023
1 parent 46c6f74 commit c0b0a3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/polestar_api/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async def _create_device(self, username: str, password: str) -> None:
await device.init()

# check if we have a token, otherwise throw exception
if device.access_token is None:
if device.polestarApi.auth.access_token is None:
_LOGGER.exception(
"No token, Could be wrong credentials (invalid email or password))")
return self.async_abort(reason="no_token")
Expand Down

0 comments on commit c0b0a3d

Please sign in to comment.