Traceback (most recent call last):


 "/usr/local/lib/python3.6/site-packages/salt/loader.py", line 1722, in _process_virtual

virtual = getattr(mod, virtual_func)()


 "/usr/local/lib/python3.6/site-packages/salt/modules/kernelpkg_linux_yum.py", line 41, in __virtual__

elif __grains__.get('os', '').lower() \
AttributeError: 'NoneType' object has no attribute 'lower'

Traceback (most recent call last):


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

resp = yield from self._request_handler(request)


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

resp = yield from handler(request)


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

res = yield from res


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

res = yield from res


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

return (yield from handler(request))


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

result = yield from result


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

return self.json_message('Invalid end_time', HTTP_BAD_REQUEST)


 "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/util/dt.py", line 64, in as_utc

if dattim.tzinfo == UTC:
AttributeError: 'NoneType' object has no attribute 'tzinfo'
