Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with credentials #723

Open
antoniovittozzi opened this issue Mar 21, 2024 · 2 comments
Open

Issue with credentials #723

antoniovittozzi opened this issue Mar 21, 2024 · 2 comments

Comments

@antoniovittozzi
Copy link

Describe the bug
I can't get integration works. Credentials are OK, LG Account is OK.

Environment details:

  • Environment (HASSIO, Raspbian, etc): HAOS Synology 920
  • Home Assistant version installed: Core 2024.3.1, Supervisor 2024.03.0, Operating System 12.1, Frontend 20240307.0
  • Component version installed:
  • Last know working version:
  • LG device type and model with issue:
  • LG devices connected (list):

Output of HA logs
2024-03-21 19:05:12.905 ERROR (MainThread) [custom_components.smartthinq_sensors] Error retrieving OAuth info from ThinQ
Traceback (most recent call last):
File "/config/custom_components/smartthinq_sensors/init.py", line 135, in get_oauth_info_from_login
return await ClientAsync.oauth_info_from_user_login(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 1623, in oauth_info_from_user_login
result = await Auth.oauth_info_from_user_login(username, password, gateway)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 910, in oauth_info_from_user_login
token_info = await gateway.core.auth_user_login(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 540, in auth_user_login
raise exc.AuthenticationError(msg)
custom_components.smartthinq_sensors.wideq.core_exceptions.AuthenticationError: code: MS.001.02 - message: Wrong Password:1
2024-03-21 19:06:16.309 WARNING (MainThread) [custom_components.smartthinq_sensors] Connection not available. ThinQ platform not ready
Traceback (most recent call last):
File "/config/custom_components/smartthinq_sensors/init.py", line 252, in async_setup_entry
client = await lge_auth.create_client_from_token(refresh_token, oauth2_url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/smartthinq_sensors/init.py", line 151, in create_client_from_token
return await ClientAsync.from_token(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 1570, in from_token
await client.refresh()
File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 1488, in refresh
self._auth = await self.auth.refresh(True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 983, in refresh
access_token, token_validity = await self._gateway.core.refresh_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 701, in refresh_auth
out = await self._auth_request(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 647, in _auth_request
oauth_url = await self.get_oauth_url()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 430, in get_oauth_url
async with self._get_session().post(
File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 1194, in aenter
self._resp = await self._coro
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 504, in _request
with timer:
File "/usr/local/lib/python3.12/site-packages/aiohttp/helpers.py", line 735, in exit
raise asyncio.TimeoutError from None
TimeoutError

Additional context
Add any other context about the problem here.

@kalmma
Copy link

kalmma commented Mar 24, 2024

I have the same problem

Copy link

github-actions bot commented May 9, 2024

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added Stale and removed Stale labels May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants