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):


 "/home/msukhorukov/.local/lib/python2.7/site-packages/flask/app.py", line 2292, in wsgi_app

response = self.full_dispatch_request()


 "/home/msukhorukov/.local/lib/python2.7/site-packages/flask/app.py", line 1815, in full_dispatch_request

rv = self.handle_user_exception(e)


 "/home/msukhorukov/.local/lib/python2.7/site-packages/flask/app.py", line 1718, in handle_user_exception

reraise(exc_type, exc_value, tb)


 "/home/msukhorukov/.local/lib/python2.7/site-packages/flask/app.py", line 1813, in full_dispatch_request

rv = self.dispatch_request()


 "/home/msukhorukov/.local/lib/python2.7/site-packages/flask/app.py", line 1799, in dispatch_request

return self.view_functions[rule.endpoint](**req.view_args)


 "/home/msukhorukov/.local/lib/python2.7/site-packages/samcli/local/apigw/local_apigw_service.py", line 140, in _request_handler

self.lambda_runner.invoke(route.function_name, event, stdout=stdout_stream, stderr=self.stderr)


 "/home/msukhorukov/.local/lib/python2.7/site-packages/samcli/commands/local/lib/local_lambda.py", line 80, in invoke

stdout=stdout, stderr=stderr)


 "/home/msukhorukov/.local/lib/python2.7/site-packages/samcli/local/lambdafn/runtime.py", line 83, in invoke

self._container_manager.run(container)


 "/home/msukhorukov/.local/lib/python2.7/site-packages/samcli/local/docker/manager.py", line 52, in run

if not self.has_image(image_name) or not self.skip_pull_image:


 "/home/msukhorukov/.local/lib/python2.7/site-packages/samcli/local/docker/manager.py", line 110, in has_image

except docker.errors.ImageNotFound:
AttributeError: 'module' object has no attribute 'ImageNotFound'
