aFrankLion / hass-google_keep

Custom component for Home Assistant to enable adding to and updating lists on Google Keep
MIT License
49 stars 12 forks source link

BadAuthentication with app-password #20

Open michaelblight opened 1 year ago

michaelblight commented 1 year ago

I assume this is still working for some people, but I'm getting an authentication error. I've tried an app specific password as mentioned in this issue but that is giving me the error below:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 286, in _async_setup_component
    result = await task
             ^^^^^^^^^^
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/gkeep/__init__.py", line 71, in setup
    login_success = keep.login(username, password)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/gkeepapi/__init__.py", line 695, in login
    ret = auth.login(username, password, device_id)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/gkeepapi/__init__.py", line 59, in login
    raise exception.LoginException(
gkeepapi.exception.LoginException: ('BadAuthentication', None)

I'm using HAOS 2023.6.2 and my google account has two-factor authentication.

konradjonsson commented 1 year ago

I'm experiencing this issue as well. Using 2023.8.3.

HappyGitCake commented 12 months ago

same here:

Logger: homeassistant.setup
Source: custom_components/gkeep/__init__.py:71
Integration: gkeep (documentation)
First occurred: 17:05:39 (1 occurrences)
Last logged: 17:05:39

Error during setup of component gkeep
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 288, in _async_setup_component
    result = await task
             ^^^^^^^^^^
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/gkeep/__init__.py", line 71, in setup
    login_success = keep.login(username, password)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/gkeepapi/__init__.py", line 695, in login
    ret = auth.login(username, password, device_id)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/gkeepapi/__init__.py", line 59, in login
    raise exception.LoginException(
gkeepapi.exception.LoginException: ('BadAuthentication', None)

this happens with or without 2FA

teadragon7 commented 8 months ago

Same here

StefanoGiu commented 7 months ago

I used keyring and tokens to make it work again. How can I create a pull request?