Traceback (most recent call last):


 "/usr/src/app/homeassistant/components/automation/__init__.py", line 378, in action

await script_obj.async_run(variables, context)


 "/usr/src/app/homeassistant/helpers/script.py", line 131, in async_run

await self._handle_action(action, variables, context)


 "/usr/src/app/homeassistant/helpers/script.py", line 210, in _handle_action

action, variables, context)


 "/usr/src/app/homeassistant/helpers/script.py", line 299, in _async_call_service

context=context


 "/usr/src/app/homeassistant/helpers/service.py", line 89, in async_call_from_config

domain, service_name, service_data, blocking=blocking, context=context)


 "/usr/src/app/homeassistant/core.py", line 1138, in async_call

self._execute_service(handler, service_call))


 "/usr/src/app/homeassistant/core.py", line 1160, in _execute_service

await handler.func(service_call)


 "/usr/src/app/homeassistant/helpers/entity_component.py", line 194, in handle_service

required_features


 "/usr/src/app/homeassistant/helpers/service.py", line 316, in entity_service_call

future.result()
# pop exception if have


 "/usr/src/app/homeassistant/helpers/service.py", line 337, in _handle_service_platform_call

await getattr(entity, func)(**data)


 "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run

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


 "/usr/src/app/homeassistant/components/konnected/switch.py", line 71, in turn_on

resp = self.client.put_device(
AttributeError: 'NoneType' object has no attribute 'put_device'


Traceback (most recent call last):



 "./tests.py", line 187, in <module>


fn()



 "./tests.py", line 181, in test_complex_type


usingArrayName("ThisNameFails")



 "./tests.py", line 176, in usingArrayName


ArrayOfContainer.render(node, top)



 "/usr/local/lib/python2.7/dist-packages/zeep/xsd/types/complex.py", line 253, in render


element.render(parent, element_value, child_path)



 "/usr/local/lib/python2.7/dist-packages/zeep/xsd/elements/indicators.py", line 241, in render


element.render(parent, element_value, child_path)



 "/usr/local/lib/python2.7/dist-packages/zeep/xsd/elements/any.py", line 131, in render


self._render_value_item(node, val, render_path)



 "/usr/local/lib/python2.7/dist-packages/zeep/xsd/elements/any.py", line 150, in _render_value_item


self.restrict.render(parent, value, None, render_path)



 "/usr/local/lib/python2.7/dist-packages/zeep/xsd/types/complex.py", line 253, in render


element.render(parent, element_value, child_path)



 "/usr/local/lib/python2.7/dist-packages/zeep/xsd/elements/indicators.py", line 241, in render


element.render(parent, element_value, child_path)



 "/usr/local/lib/python2.7/dist-packages/zeep/xsd/elements/element.py", line 191, in render


self._render_value_item(parent, value, render_path)



 "/usr/local/lib/python2.7/dist-packages/zeep/xsd/elements/element.py", line 215, in _render_value_item


return self.type.render(node, value, None, render_path)



 "/usr/local/lib/python2.7/dist-packages/zeep/xsd/types/complex.py", line 220, in render


value = value.as_value_object()



 "/usr/local/lib/python2.7/dist-packages/zeep/xsd/valueobjects.py", line 58, in as_value_object


return anon_type(list(self))



 "/usr/local/lib/python2.7/dist-packages/zeep/xsd/valueobjects.py", line 78, in __init__


elm_values = container.default_value

AttributeError: 'NoneType' object has no attribute 'default_value'
