-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
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
Add google hangouts manual authentication option #22158
Conversation
Could you confirm whether you still need username/password if you choose to use manual login method. Actually, in my opinion, the auth_code way is better than save Google account password in HA. |
No, need for username/password using the manual login. Thought about removing them but I figured perhaps it might still work for some people so decided to leave it in. Side question though, does the password get saved in HA ?? I had thought only the refresh token would be saved. |
Aha, you are right, password is not saved. |
Hey @awarecan, any idea on when/if this would get merged (or if there are any issues with it) ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job in general. The translation issue has to be fixed.
self._credentials, | ||
self._refresh_token) | ||
if user_auth_code is None: | ||
manual_login = False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
manual_login = user_auth_code is not None
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job! 🎉
Don't worry the mess up, that happens often then you may think.
* Added option to use manual authentication for google hangout component See: https://hangups.readthedocs.io/en/latest/user_guide.html#logging-in for manual log in example Bumped up version of hangups to 0.4.9 * Updated components/hangouts/strings.json and generated translation string by running script/translations_develop Reduced verbosity of modifications to components/hangouts/config_flow.py * Added option to use manual authentication for google hangout component See: https://hangups.readthedocs.io/en/latest/user_guide.html#logging-in for manual log in example Bumped up version of hangups to 0.4.9 * Updated components/hangouts/strings.json and generated translation string by running script/translations_develop Reduced verbosity of modifications to components/hangouts/config_flow.py * fixing missing rebase
See: https://hangups.readthedocs.io/en/latest/user_guide.html#logging-in for manual log in example
Bumped up version of hangups to 0.4.9
Description:
Authentication for the google hangout component fails even with correct auth credentials. The underlying library (hangups) which powers this component was updated to provide a manual authentication option. This PR provides an implementation of this update.
It allows the user to supply a manually obtained authorization code during setup which is then used to authenticate.
Related issue (if applicable): fixes #17705
Pull request in home-assistant.io with documentation (if applicable): home-assistant/home-assistant.io#8974
Checklist:
tox
. Your PR cannot be merged unless tests passIf user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
REQUIREMENTS
variable (example).requirements_all.txt
by runningscript/gen_requirements_all.py
.If the code does not interact with devices: