Fix Google Calendar/oauth2client warning (#9677)

* Fixes oauth2client warning.

* Fix permission.
This commit is contained in:
Martin Berg 2017-10-04 10:01:20 +02:00 committed by Fabian Affolter
parent 7759ae26fd
commit 3a282702d9

View File

@ -99,10 +99,10 @@ def do_authentication(hass, config):
from oauth2client.file import Storage
oauth = OAuth2WebServerFlow(
config[CONF_CLIENT_ID],
config[CONF_CLIENT_SECRET],
'https://www.googleapis.com/auth/calendar.readonly',
'Home-Assistant.io',
client_id=config[CONF_CLIENT_ID],
client_secret=config[CONF_CLIENT_SECRET],
scope='https://www.googleapis.com/auth/calendar.readonly',
redirect_uri='Home-Assistant.io',
)
try: