Traceback (most recent call last):


 "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 335, in _async_add_entity

await entity.async_device_update(warning=False)


 "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 456, in async_device_update

await self.hass.async_add_executor_job(


 "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run

result = self.fn(*self.args, **self.kwargs)


 "/usr/src/homeassistant/homeassistant/components/google/calendar.py", line 106, in update

self.data.update()


 "/usr/src/homeassistant/homeassistant/util/__init__.py", line 239, in wrapper

result = method(*args, **kwargs)


 "/usr/src/homeassistant/homeassistant/components/google/calendar.py", line 169, in update

service, params = self._prepare_query()


 "/usr/src/homeassistant/homeassistant/components/google/calendar.py", line 132, in _prepare_query

service = self.calendar_service.get()


 "/usr/src/homeassistant/homeassistant/components/google/__init__.py", line 347, in get

http = credentials.authorize(httplib2.Http())
AttributeError: 'NoneType' object has no attribute 'authorize'

Traceback (most recent call last):


 "/usr/local/bin/pgcli", line 11, in <module>

sys.exit(cli())


 "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/click/core.py", line 722, in __call__

return self.main(*args, **kwargs)


 "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/click/core.py", line 697, in main

rv = self.invoke(ctx)


 "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/click/core.py", line 895, in invoke

return ctx.invoke(self.callback, **ctx.params)


 "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/click/core.py", line 535, in invoke

return callback(*args, **kwargs)


 "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pgcli/main.py", line 1045, in cli

pgcli.echo_via_pager('\n'.join(formatted))


 "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pgcli/main.py", line 919, in echo_via_pager

if len(lines) >= self.prompt_app.output.get_size().rows - 4 or any(self.is_wide_line(l) for l in lines):
AttributeError: 'NoneType' object has no attribute 'output'
