I get this
pi@raspberrypi:~ $ sudo su -s /bin/bash hass
hass@raspberrypi:/home/pi$ source /srv/hass/hass_venv/bin/activate
(hass_venv) hass@raspberrypi:/home/pi$ hass
Config directory: /home/hass/.homeassistant
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=turn_ off, domain=homeassistant>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=turn_ on, domain=homeassistant>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=toggl e, domain=homeassistant>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=reloa d_core_config, domain=homeassistant>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=creat e, domain=persistent_notification>
INFO:homeassistant.bootstrap:Home Assistant core initialized
INFO:homeassistant.loader:Loaded input_slider from homeassistant.components.inpu t_slider
INFO:homeassistant.loader:Loaded conversation from homeassistant.components.conv ersation
INFO:homeassistant.loader:Loaded updater from homeassistant.components.updater
INFO:homeassistant.loader:Loaded http from homeassistant.components.http
INFO:homeassistant.loader:Loaded history from homeassistant.components.history
INFO:homeassistant.loader:Loaded recorder from homeassistant.components.recorder
INFO:homeassistant.loader:Loaded camera from homeassistant.components.camera
INFO:homeassistant.loader:Loaded script from homeassistant.components.script
INFO:homeassistant.loader:Loaded group from homeassistant.components.group
INFO:homeassistant.loader:Loaded mqtt from homeassistant.components.mqtt
INFO:homeassistant.loader:Loaded climate from homeassistant.components.climate
INFO:homeassistant.loader:Loaded switch from homeassistant.components.switch
INFO:homeassistant.loader:Loaded automation from homeassistant.components.automa tion
Traceback (most recent call last):
File "/srv/hass/hass_venv/bin/hass", line 11, in <module>
sys.exit(main())
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/__main__.p y", line 380, in main
exit_code = setup_and_run_hass(config_dir, args)
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/__main__.p y", line 293, in setup_and_run_hass
log_rotate_days=args.log_rotate_days)
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/bootstrap. py", line 463, in from_config_file
hass.loop.run_until_complete(future)
File "/usr/lib/python3.4/asyncio/base_events.py", line 276, in run_until_compl ete
return future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/bootstrap. py", line 454, in _async_init_from_config_file
config_path, hass, verbose, skip_pip, log_rotate_days)
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/bootstrap. py", line 496, in async_from_config_file
config_dict, hass, enable_log=False, skip_pip=skip_pip)
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/bootstrap. py", line 427, in async_from_config_dict
for domain in loader.load_order_components(components):
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/loader.py" , line 192, in load_order_components
key=lambda order: 'group' in order):
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/loader.py" , line 191, in <genexpr>
for component in components),
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/loader.py" , line 211, in load_order_component
return _load_order_component(comp_name, OrderedSet(), set())
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/loader.py" , line 220, in _load_order_component
component = get_component(comp_name)
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/loader.py" , line 139, in get_component
module = importlib.import_module(path)
File "/srv/hass/hass_venv/lib/python3.4/importlib/__init__.py", line 109, in i mport_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
File "<frozen importlib._bootstrap>", line 1129, in _exec
File "<frozen importlib._bootstrap>", line 1467, in exec_module
File "<frozen importlib._bootstrap>", line 1572, in get_code
File "<frozen importlib._bootstrap>", line 1532, in source_to_code
File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
File "/home/hass/.homeassistant/custom_components/xiaomi.py", line 5
<!DOCTYPE html>
^
SyntaxError: invalid syntax
^CException ignored in: <module 'threading' from '/usr/lib/python3.4/threading.py'>
Traceback (most recent call last):
File "/usr/lib/python3.4/threading.py", line 1294, in _shutdown
t.join()
File "/usr/lib/python3.4/threading.py", line 1060, in join
self._wait_for_tstate_lock()
File "/usr/lib/python3.4/threading.py", line 1076, in _wait_for_tstate_lock
elif lock.acquire(block, timeout):
KeyboardInterrupt
(hass_venv) hass@raspberrypi:/home/pi$