Traceback (most recent call last):

 "/home/patrick/.vim/bundle/jedi-vim/plugin/jedi_vim.py", line 85, in complete
strout = str(out)

 "/home/patrick/.vim/bundle/jedi-vim/plugin/jedi_vim.py", line 26, in __repr__
return '"%s"' % s.replace('\\', '\\\\').replace('"', r'\"')TypeError: expected bytes, bytearray or buffer compatible object
Traceback (most recent call last):


 "/usr/src/app/homeassistant/helpers/entity_component.py", line 151, in _async_setup_platform

entity_platform.add_entities, discovery_info


 "uvloop/future.pyx", line 230, in __iter__ (uvloop/loop.c:110600)


 "uvloop/future.pyx", line 432, in uvloop.loop.BaseTask._fast_wakeup (uvloop/loop.c:113980)


 "uvloop/future.pyx", line 101, in uvloop.loop.BaseFuture._result_impl (uvloop/loop.c:108900)


 "/usr/local/lib/python3.5/concurrent/futures/thread.py", line 55, in run

result = self.fn(*self.args, **self.kwargs)


 "/usr/src/app/homeassistant/components/switch/mqtt.py", line 54, in setup_platform

value_template,


 "/usr/src/app/homeassistant/components/switch/mqtt.py", line 93, in __init__

hass, self._state_topic, message_received, self._qos)


 "/usr/src/app/homeassistant/components/mqtt/__init__.py", line 211, in subscribe

hass.loop


 "/usr/local/lib/python3.5/concurrent/futures/_base.py", line 405, in result

return self.__get_result()


 "/usr/local/lib/python3.5/concurrent/futures/_base.py", line 357, in __get_result

raise self._exception


 "uvloop/future.pyx", line 372, in uvloop.loop.BaseTask._fast_step (uvloop/loop.c:112669)


 "/usr/src/app/homeassistant/components/mqtt/__init__.py", line 203, in async_subscribe

yield from hass.data[DATA_MQTT].async_subscribe(topic, qos)


 "/usr/src/app/homeassistant/components/mqtt/__init__.py", line 458, in async_subscribe

_raise_on_error(result)


 "/usr/src/app/homeassistant/components/mqtt/__init__.py", line 577, in _raise_on_error

raise HomeAssistantError('Error talking to MQTT: {}'.format(result))
homeassistant.exceptions.HomeAssistantError: Error talking to MQTT: 4
