Lost history in 0.60


After upgrading to 0.60 my history is empty. The graphs show “state history not found” on the iOS UI and are just blank on the web UI.
I have this error in the log but can’t figure out if it’s related:

2018-01-05 06:49:50 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/aiohttp/web_protocol.py”, line 410, in start
resp = yield from self._request_handler(request)
File “/usr/lib/python3.6/site-packages/aiohttp/web.py”, line 325, in _handle
resp = yield from handler(request)
File “/usr/lib/python3.6/site-packages/aiohttp/web_middlewares.py”, line 93, in impl
return (yield from handler(request))
File “/usr/lib/python3.6/site-packages/homeassistant/components/http/ban.py”, line 58, in ban_middleware
return (yield from handler(request))
File “/usr/lib/python3.6/asyncio/coroutines.py”, line 213, in coro
res = yield from res
File “/usr/lib/python3.6/asyncio/coroutines.py”, line 213, in coro
res = yield from res
File “/usr/lib/python3.6/site-packages/homeassistant/components/http/init.py”, line 430, in handle
result = yield from result
File “/usr/lib/python3.6/site-packages/homeassistant/components/frontend/init.py”, line 485, in get
_is_latest(self.js_option, request)
File “/usr/lib/python3.6/site-packages/homeassistant/components/frontend/init.py”, line 583, in _is_latest
useragent = parse(request.headers.get(‘User-Agent’))
File “/usr/lib/python3.6/site-packages/user_agents/parsers.py”, line 254, in parse
return UserAgent(user_agent_string)
File “/usr/lib/python3.6/site-packages/user_agents/parsers.py”, line 135, in init
ua_dict = user_agent_parser.Parse(user_agent_string)
File “/usr/lib/python3.6/site-packages/ua_parser/user_agent_parser.py”, line 222, in Parse
‘user_agent’: ParseUserAgent(user_agent_string, **jsParseBits),
File “/usr/lib/python3.6/site-packages/ua_parser/user_agent_parser.py”, line 249, in ParseUserAgent
family, v1, v2, v3 = uaParser.Parse(user_agent_string)
File “/usr/lib/python3.6/site-packages/ua_parser/user_agent_parser.py”, line 51, in Parse
match = self.user_agent_re.search(user_agent_string)

Did you try adding this to your config?

  javascript_version: es5
1 Like

That solved it. Thanks!