Traceback (most recent call last):


 "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 155, in _async_setup_platform

entity_platform.schedule_add_entities, discovery_info


 "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__

yield self
# This tells Task to wait for completion.


 "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup

value = future.result()


 "/usr/lib/python3.4/asyncio/futures.py", line 277, in result

raise self._exception


 "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run

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


 "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/light/osramlightify.py", line 60, in setup_platform

setup_bridge(bridge, add_devices, add_groups)


 "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/light/osramlightify.py", line 106, in setup_bridge

update_lights()


 "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/util/__init__.py", line 303, in wrapper

result = method(*args, **kwargs)


 "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/util/__init__.py", line 303, in wrapper

result = method(*args, **kwargs)


 "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/light/osramlightify.py", line 97, in update_lights

update_lights)


 "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/light/osramlightify.py", line 268, in __init__

super().__init__(group, update_lights)


 "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/light/osramlightify.py", line 121, in __init__

self.update()


 "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/light/osramlightify.py", line 282, in update

light = self._bridge.lights()[self._light_ids[0]]
IndexError: list index out of range

Traceback (most recent call last):


 "/Users/tomkins/.virtualenvs/devsoc/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner

response = get_response(request)


 "/Users/tomkins/.virtualenvs/devsoc/lib/python3.6/site-packages/django/core/handlers/base.py", line 115, in _get_response

response = self.process_exception_by_middleware(e, request)


 "/Users/tomkins/.virtualenvs/devsoc/lib/python3.6/site-packages/django/core/handlers/base.py", line 113, in _get_response

response = wrapped_callback(request, *callback_args, **callback_kwargs)


 "/Users/tomkins/.virtualenvs/devsoc/lib/python3.6/site-packages/django/views/decorators/cache.py", line 44, in _wrapped_view_func

response = view_func(request, *args, **kwargs)


 "/Users/tomkins/Python/wagtail/wagtail/admin/urls/__init__.py", line 102, in wrapper

return view_func(request, *args, **kwargs)


 "/Users/tomkins/Python/wagtail/wagtail/admin/decorators.py", line 34, in decorated_view

return view_func(request, *args, **kwargs)


 "/Users/tomkins/Python/wagtail/wagtail/admin/views/pages.py", line 539, in edit

'has_unsaved_changes': has_unsaved_changes,


 "/Users/tomkins/.virtualenvs/devsoc/lib/python3.6/site-packages/django/shortcuts.py", line 36, in render

content = loader.render_to_string(template_name, context, request, using=using)


 "/Users/tomkins/.virtualenvs/devsoc/lib/python3.6/site-packages/django/template/loader.py", line 62, in render_to_string

return template.render(context, request)


 "/Users/tomkins/.virtualenvs/devsoc/lib/python3.6/site-packages/django/template/backends/django.py", line 61, in render

return self.template.render(context)


 "/Users/tomkins/.virtualenvs/devsoc/lib/python3.6/site-packages/django/template/base.py", line 171, in render

return self._render(context)


 "/Users/tomkins/.virtualenvs/devsoc/lib/python3.6/site-packages/django/test/utils.py", line 95, in instrumented_test_render

template_rendered.send(sender=self, template=self, context=context)


 "/Users/tomkins/.virtualenvs/devsoc/lib/python3.6/site-packages/django/dispatch/dispatcher.py", line 175, in send

for receiver in self._live_receivers(sender)


 "/Users/tomkins/.virtualenvs/devsoc/lib/python3.6/site-packages/django/dispatch/dispatcher.py", line 175, in <listcomp>

for receiver in self._live_receivers(sender)


 "/Users/tomkins/Python/django-debug-toolbar/debug_toolbar/panels/templates/panel.py", line 150, in _store_template_info

pformatted = pformat(temp_layer)


 "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/pprint.py", line 58, in pformat

compact=compact).pformat(object)


 "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/pprint.py", line 144, in pformat

self._format(object, sio, 0, 0, {}, 0)


 "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/pprint.py", line 161, in _format

rep = self._repr(object, context, level)


 "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/pprint.py", line 393, in _repr

self._depth, level)


 "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/pprint.py", line 405, in format

return _safe_repr(object, context, maxlevels, level)


 "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/pprint.py", line 514, in _safe_repr

vrepr, vreadable, vrecur = saferepr(v, context, maxlevels, level)


 "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/pprint.py", line 555, in _safe_repr

rep = repr(object)


 "/Users/tomkins/Python/wagtail/wagtail/admin/edit_handlers.py", line 188, in __repr__

self.model, self.instance, self.request, self.form)


 "/Users/tomkins/.virtualenvs/devsoc/lib/python3.6/site-packages/django/utils/html.py", line 388, in <lambda>

klass.__str__ = lambda self: mark_safe(klass_str(self))


 "/Users/tomkins/.virtualenvs/devsoc/lib/python3.6/site-packages/django/forms/forms.py", line 142, in __str__

return self.as_table()


 "/Users/tomkins/.virtualenvs/devsoc/lib/python3.6/site-packages/django/forms/forms.py", line 284, in as_table

errors_on_separate_row=False,


 "/Users/tomkins/.virtualenvs/devsoc/lib/python3.6/site-packages/django/forms/forms.py", line 243, in _html_output

'field_name': bf.html_name,


 "/Users/tomkins/.virtualenvs/devsoc/lib/python3.6/site-packages/django/utils/html.py", line 388, in <lambda>

klass.__str__ = lambda self: mark_safe(klass_str(self))


 "/Users/tomkins/.virtualenvs/devsoc/lib/python3.6/site-packages/django/forms/boundfield.py", line 33, in __str__

return self.as_widget()


 "/Users/tomkins/.virtualenvs/devsoc/lib/python3.6/site-packages/django/forms/boundfield.py", line 93, in as_widget

renderer=self.form.renderer,


 "/Users/tomkins/Python/wagtail/wagtail/core/blocks/base.py", line 505, in render

return self.render_with_errors(name, value, attrs=attrs, errors=None, renderer=renderer)


 "/Users/tomkins/Python/wagtail/wagtail/core/blocks/base.py", line 502, in render_with_errors

return mark_safe(bound_block.render_form() + js_snippet)


 "/Users/tomkins/Python/wagtail/wagtail/core/blocks/base.py", line 417, in render_form

return self.block.render_form(self.value, self.prefix, errors=self.errors)


 "/Users/tomkins/Python/wagtail/wagtail/core/blocks/stream_block.py", line 141, in render_form

for (i, child) in enumerate(valid_children)


 "/Users/tomkins/Python/wagtail/wagtail/core/blocks/stream_block.py", line 141, in <listcomp>

for (i, child) in enumerate(valid_children)


 "/Users/tomkins/Python/wagtail/wagtail/core/blocks/stream_block.py", line 78, in render_list_member

'block_id': id,


 "/Users/tomkins/.virtualenvs/devsoc/lib/python3.6/site-packages/django/template/loader.py", line 62, in render_to_string

return template.render(context, request)


 "/Users/tomkins/.virtualenvs/devsoc/lib/python3.6/site-packages/django/template/backends/django.py", line 61, in render

return self.template.render(context)


 "/Users/tomkins/.virtualenvs/devsoc/lib/python3.6/site-packages/django/template/base.py", line 171, in render

return self._render(context)


 "/Users/tomkins/.virtualenvs/devsoc/lib/python3.6/site-packages/django/test/utils.py", line 96, in instrumented_test_render

return self.nodelist.render(context)


 "/Users/tomkins/.virtualenvs/devsoc/lib/python3.6/site-packages/django/template/base.py", line 937, in render

bit = node.render_annotated(context)


 "/Users/tomkins/.virtualenvs/devsoc/lib/python3.6/site-packages/django/template/base.py", line 904, in render_annotated

return self.render(context)


 "/Users/tomkins/.virtualenvs/devsoc/lib/python3.6/site-packages/django/template/loader_tags.py", line 150, in render

return compiled_parent._render(context)


 "/Users/tomkins/.virtualenvs/devsoc/lib/python3.6/site-packages/django/test/utils.py", line 95, in instrumented_test_render

template_rendered.send(sender=self, template=self, context=context)


 "/Users/tomkins/.virtualenvs/devsoc/lib/python3.6/site-packages/django/dispatch/dispatcher.py", line 175, in send

for receiver in self._live_receivers(sender)


 "/Users/tomkins/.virtualenvs/devsoc/lib/python3.6/site-packages/django/dispatch/dispatcher.py", line 175, in <listcomp>

for receiver in self._live_receivers(sender)


 "/Users/tomkins/Python/django-debug-toolbar/debug_toolbar/panels/templates/panel.py", line 103, in _store_template_info

pformatted = self.pformat_layers[index]
IndexError: list index out of range
