Calendar Error Unauthorized

Hello, I have used the calendar component for a few days, but a few days ago I can not use it anymore because it is giving me this error:
2017-06-18 23:21:30 ERROR (MainThread) [homeassistant.components.calendar] Error while setting up platform google
Traceback (most recent call last):
File “C:\Users\default\AppData\Local\Programs\Python\Python35\lib\site-packages\homeassistant\helpers\entity_component.py”, line 160, in async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
File “C:\Users\default\AppData\Local\Programs\Python\Python35\lib\asyncio\tasks.py”, line 400, in wait_for
return fut.result()
File “C:\Users\default\AppData\Local\Programs\Python\Python35\lib\asyncio\futures.py”, line 293, in result
raise self.exception
File “C:\Users\default\AppData\Local\Programs\Python\Python35\lib\concurrent\futures\thread.py”, line 55, in run
result = self.fn(*self.args, **self.kwargs)
File “C:\Users\default\AppData\Local\Programs\Python\Python35\lib\site-packages\homeassistant\components\calendar\google.py”, line 39, in setup_platform
for data in disc_info[CONF_ENTITIES] if data[CONF_TRACK]])
File “C:\Users\default\AppData\Local\Programs\Python\Python35\lib\site-packages\homeassistant\components\calendar\google.py”, line 39, in
for data in disc_info[CONF_ENTITIES] if data[CONF_TRACK]])
File “C:\Users\default\AppData\Local\Programs\Python\Python35\lib\site-packages\homeassistant\components\calendar\google.py”, line 50, in init
super().init(hass, data)
File "C:\Users\default\AppData\Local\Programs\Python\Python35\lib\site-packages\homeassistant\components\calendar_init
.py", line 71, in init
self.update()
File "C:\Users\default\AppData\Local\Programs\Python\Python35\lib\site-packages\homeassistant\components\calendar_init
.py", line 137, in update
if not self.data or not self.data.update():
File “C:\Users\default\AppData\Local\Programs\Python\Python35\lib\site-packages\homeassistant\util_init_.py”, line 303, in wrapper
result = method(*args, **kwargs)
File “C:\Users\default\AppData\Local\Programs\Python\Python35\lib\site-packages\homeassistant\components\calendar\google.py”, line 74, in update
result = events.list(**params).execute()
File “C:\Users\default\AppData\Roaming.homeassistant\deps\oauth2client_helpers.py”, line 133, in positional_wrapper
return wrapped(*args, **kwargs)
File “C:\Users\default\AppData\Roaming.homeassistant\deps\googleapiclient\http.py”, line 835, in execute
method=str(self.method), body=self.body, headers=self.headers)
File “C:\Users\default\AppData\Roaming.homeassistant\deps\googleapiclient\http.py”, line 162, in _retry_request
resp, content = http.request(uri, method, *args, **kwargs)
File “C:\Users\default\AppData\Roaming.homeassistant\deps\oauth2client\transport.py”, line 186, in new_request
credentials._refresh(orig_request_method)
File “C:\Users\default\AppData\Roaming.homeassistant\deps\oauth2client\client.py”, line 756, in _refresh
self._do_refresh_request(http)
File “C:\Users\default\AppData\Roaming.homeassistant\deps\oauth2client\client.py”, line 812, in _do_refresh_request
raise HttpAccessTokenRefreshError(error_msg, status=resp.status)
oauth2client.client.HttpAccessTokenRefreshError: invalid_client: Unauthorized

Thanks

Edit: I have changed the client secret and should have deleted the .google.token file then the new token was generated.