mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +00:00
Fix Google Calendar/oauth2client warning (#9677)
* Fixes oauth2client warning. * Fix permission.
This commit is contained in:
parent
7759ae26fd
commit
3a282702d9
@ -99,10 +99,10 @@ def do_authentication(hass, config):
|
|||||||
from oauth2client.file import Storage
|
from oauth2client.file import Storage
|
||||||
|
|
||||||
oauth = OAuth2WebServerFlow(
|
oauth = OAuth2WebServerFlow(
|
||||||
config[CONF_CLIENT_ID],
|
client_id=config[CONF_CLIENT_ID],
|
||||||
config[CONF_CLIENT_SECRET],
|
client_secret=config[CONF_CLIENT_SECRET],
|
||||||
'https://www.googleapis.com/auth/calendar.readonly',
|
scope='https://www.googleapis.com/auth/calendar.readonly',
|
||||||
'Home-Assistant.io',
|
redirect_uri='Home-Assistant.io',
|
||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user