Traceback (most recent call last):


 "/srv/homeassistant/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start

resp = await task


 "/srv/homeassistant/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle

resp = await handler(request)


 "/srv/homeassistant/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl

return await handler(request)


 "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/http/real_ip.py", line 33, in real_ip_middleware

return await handler(request)


 "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/http/view.py", line 112, in handle

result = handler(request, **request.match_info)


 "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/emulated_hue/hue_api.py", line 172, in get

entity = hass.states.get(entity_id)


 "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/core.py", line 838, in get

return self._states.get(entity_id.lower())
AttributeError: 'NoneType' object has no attribute 'lower'

Traceback (most recent call last):


 "/Users/jaraco/code/public/cherrypy/cherrypy/cherrypy/_cprequest.py", line 638, in respond

self._do_respond(path_info)


 "/Users/jaraco/code/public/cherrypy/cherrypy/cherrypy/_cprequest.py", line 688, in _do_respond

self.hooks.run('before_request_body')


 "/Users/jaraco/code/public/cherrypy/cherrypy/cherrypy/_cprequest.py", line 95, in run

self.run_hooks(iter(sorted(self[point])))


 "/Users/jaraco/code/public/cherrypy/cherrypy/cherrypy/_cprequest.py", line 117, in run_hooks

hook()


 "/Users/jaraco/code/public/cherrypy/cherrypy/cherrypy/_cprequest.py", line 65, in __call__

return self.callback(**self.kwargs)


 "/Users/jaraco/code/public/cherrypy/cherrypy/cherrypy/lib/sessions.py", line 834, in init

set_response_cookie(path=path, path_header=path_header, name=name,


 "/Users/jaraco/code/public/cherrypy/cherrypy/cherrypy/lib/sessions.py", line 875, in set_response_cookie

cherrypy.serving.request.headers.get(path_header) or


 "/Users/jaraco/code/public/cherrypy/cherrypy/cherrypy/lib/httputil.py", line 425, in get

key = self.transform_key(key)


 "/Users/jaraco/code/public/cherrypy/cherrypy/cherrypy/lib/httputil.py", line 460, in transform_key

return key.title()
AttributeError: 'NoneType' object has no attribute 'title'
