Google calendar problems

After switching to hassio from hassbian and after copying all the full configuration folder into hassio i get the following error about the google calendar integration:

2019-11-19 19:22:56 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall google.scan_for_calendars (c:4d616968c7224d3b80dd37ef749cbc54)>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 1244, in _safe_execute
    await self._execute_service(handler, service_call)
  File "/usr/src/homeassistant/homeassistant/core.py", line 1263, in _execute_service
    await self._hass.async_add_executor_job(handler.func, service_call)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/google/__init__.py", line 257, in _scan_for_calendars
    service = calendar_service.get()
  File "/usr/src/homeassistant/homeassistant/components/google/__init__.py", line 347, in get
    http = credentials.authorize(httplib2.Http())
AttributeError: 'NoneType' object has no attribute 'authorize'

Into hassbian all was working good…
Any help to fix this?

Delete or rename the file “.google.token” in your /config folder, reboot and follow the instructions in the persistent notification just created.

2 Likes