Google Calendar Error

Ever since upgrading to 0.39.1 my google calendar integration doesn’t work and I get the following errors:

17-03-07 14:59:11 ERROR (MainThread) [homeassistant.components.calendar] Error while setting up platform google
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 151, in _async_setup_platform
entity_platform.add_entities, discovery_info
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/calendar/google.py", line 40, in setup_platform
for data in disc_info[CONF_ENTITIES] if data[CONF_TRACK]])
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/calendar/google.py", line 40, in <listcomp>
for data in disc_info[CONF_ENTITIES] if data[CONF_TRACK]])
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/calendar/google.py", line 51, in __init__
super().__init__(hass, data)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/calendar/__init__.py", line 72, in __init__
self.update()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/calendar/__init__.py", line 158, in update
summary = self.data.event['summary']

I’ve downgraded back to 0.37 and then upgraded back up as another topic suggested but still no luck. Any ideas?

Do you have an event without a title? I ran into something similar if I had events with no titles. I believe there is a fix if you are using the dev branch, or else just make sure all your events have titles.

Thanks Alan that fixed it! :slight_smile:

I am getting the following error starting about version 40. I checked my events to make sure they all have titles. Any suggestion would be appreciated.

17-04-18 19:11:48 ERROR (MainThread) [homeassistant.core] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/concurrent/futures/thread.py”, line 55, in run
result = self.fn(*self.args, **self.kwargs)
File “/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/homeassistant/core.py”, line 1019, in execute_service
service_handler.func(service_call)
File “/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/homeassistant/components/google.py”, line 200, in _scan_for_calendars
service = calendar_service.get()
File “/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/homeassistant/components/google.py”, line 249, in get
http = credentials.authorize(httplib2.Http())
AttributeError: ‘NoneType’ object has no attribute ‘authorize’

Were you able to resolve this issue?

I don’t have the errors anymore. I think an upgrade solved it but I can’t recall.

What did you upgrade, HA?

yes, I’m on version 0.46

I just upgrade to version 0.52.1 and I have the error, anybody else have error?

I had the same issue, it was because the .google.token file was empty (I had a full on my filesystem). Have a look at it.

1 Like

Thanks that solved my problem

1 Like

Deleting .google.token and reauthorising fixed my issue.