Traceback (most recent call last):

 "/Users/colinww/anaconda3/lib/python3.7/site-packages/spyder/plugins/editor/panels/codefolding.py", line 256, in paintEvent
self._draw_fold_region_background(block, painter)

 "/Users/colinww/anaconda3/lib/python3.7/site-packages/spyder/plugins/editor/panels/codefolding.py", line 300, in _draw_fold_region_background
end = self.folding_regions[start]KeyError: 141
Traceback (most recent call last):


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

resp = yield from self._request_handler(request)


 "/srv/homeassistant/lib/python3.6/site-packages/aiohttp/web.py", line 325, in _handle

resp = yield from handler(request)


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

return (yield from handler(request))


 "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/http/ban.py", line 58, in ban_middleware

return (yield from handler(request))


 "/usr/local/lib/python3.6/asyncio/coroutines.py", line 213, in coro

res = yield from res


 "/usr/local/lib/python3.6/asyncio/coroutines.py", line 213, in coro

res = yield from res


 "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/http/__init__.py", line 430, in handle

result = yield from result


 "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/history.py", line 316, in get

result.remove(state_list)
AttributeError: 'dict_values' object has no attribute 'remove'
