0.38 Errors after restarting

Logs are full of these, HASS is stuck at the login screen saying “Loading Data”

17-02-11 21:41:02 ERROR (MainThread) [homeassistant.components.websocket_api] Unexpected error inside websocket API. {'id': 3, 'type': 'get_states'}
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/websocket_api.py", line 282, in handle
    getattr(self, handler_name)(msg)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/websocket_api.py", line 398, in handle_get_states
    self.hass.states.async_all()))
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/websocket_api.py", line 220, in send_message
    self.wsock.send_json(message, dumps=JSON_DUMP)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/web_ws.py", line 205, in send_json
    return self.send_str(dumps(data))
  File "/home/homeassistant/.homeassistant/deps/aiohttp/web_ws.py", line 194, in send_str
    return self._writer.send(data, binary=False)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/_ws_impl.py", line 377, in send
    return self._send_frame(message, WSMsgType.TEXT)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/_ws_impl.py", line 354, in _send_frame
    return self.writer.drain()
AttributeError: '_SelectorSocketTransport' object has no attribute 'drain'
17-02-11 21:41:02 ERROR (MainThread) [homeassistant.components.websocket_api] Unexpected error inside websocket API. {'id': 3, 'type': 'get_states'}
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/websocket_api.py", line 282, in handle
    getattr(self, handler_name)(msg)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/websocket_api.py", line 398, in handle_get_states
    self.hass.states.async_all()))
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/websocket_api.py", line 220, in send_message
    self.wsock.send_json(message, dumps=JSON_DUMP)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/web_ws.py", line 205, in send_json
    return self.send_str(dumps(data))
  File "/home/homeassistant/.homeassistant/deps/aiohttp/web_ws.py", line 194, in send_str
    return self._writer.send(data, binary=False)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/_ws_impl.py", line 377, in send
    return self._send_frame(message, WSMsgType.TEXT)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/_ws_impl.py", line 354, in _send_frame
    return self.writer.drain()
AttributeError: '_SelectorSocketTransport' object has no attribute 'drain'
17-02-11 21:41:02 ERROR (MainThread) [homeassistant.components.websocket_api] Unexpected error inside websocket API. {'id': 3, 'type': 'get_states'}
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/websocket_api.py", line 282, in handle
    getattr(self, handler_name)(msg)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/websocket_api.py", line 398, in handle_get_states
    self.hass.states.async_all()))
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/websocket_api.py", line 220, in send_message
    self.wsock.send_json(message, dumps=JSON_DUMP)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/web_ws.py", line 205, in send_json
    return self.send_str(dumps(data))
  File "/home/homeassistant/.homeassistant/deps/aiohttp/web_ws.py", line 194, in send_str
    return self._writer.send(data, binary=False)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/_ws_impl.py", line 377, in send
    return self._send_frame(message, WSMsgType.TEXT)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/_ws_impl.py", line 354, in _send_frame
    return self.writer.drain()
AttributeError: '_SelectorSocketTransport' object has no attribute 'drain'

0.38.1 was just released shortly after, I’d try updating to that to see if it fixes your issue.

Fixed, thanks