hello i have already a raspberry pi as my Master system , now i am try to setup a second raspberry pi as slave , i have install home assistant , and i have create a slave.py with the following code:
import homeassistant.remote as remote
import homeassistant.bootstrap as bootstrap
# Location of the Master API: host, password, port.
# Password and port are optional.
remote_api = remote.API("XXX.XXX.X.XXX", "XXXXXXXXXX", 8123)
# Initialize slave
hass = remote.HomeAssistant(remote_api)
# To add an interface to the slave on localhost:8123
bootstrap.setup_component(hass, 'frontend')
hass.start()
hass.block_till_stopped()
when i am try to run slave.py , i am getting this error:
Error during setup of component frontend
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/homeassistant/bootstrap.py", line 150, in _setup_component
if not component.setup(hass, config):
File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/frontend/__init__.py", line 26, in setup
0
File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/http.py", line 309, in register_static_path
self.register_wsgi_app(url_root, Cling(path, headers=headers))
TypeError: __init__() got an unexpected keyword argument 'headers'
and when i am point in the browser the slave url i am getting this message:
Home Assistant had trouble
connecting to the server.
any ideas? where is the problem?
thanks!