Traceback (most recent call last):


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

entity_platform.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/hue.py", line 128, in setup_platform

allow_in_emulated_hue, allow_hue_groups)


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

config_file_path=hass.config.path(filename))


 "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/core.py", line 1107, in path

return os.path.join(self.config_dir, *path)


 "/srv/homeassistant/homeassistant_venv/lib/python3.4/posixpath.py", line 79, in join

if b.startswith(sep):
AttributeError: 'NoneType' object has no attribute 'startswith'`

Traceback (most recent call last):


 "run.py", line 57, in <module>

c.start()


 "run.py", line 38, in start

self.stack.loop(timeout=0.5, discrete=0.5)


 "/usr/lib/python3.6/site-packages/yowsup/stacks/yowstack.py", line 189, in loop

asyncore.loop(*args, **kwargs)


 "/usr/lib/python3.6/asyncore.py", line 203, in loop

poll_fun(timeout, map)


 "/usr/lib/python3.6/asyncore.py", line 150, in poll

read(obj)


 "/usr/lib/python3.6/asyncore.py", line 87, in read

obj.handle_error()


 "/usr/lib/python3.6/asyncore.py", line 83, in read

obj.handle_read_event()


 "/usr/lib/python3.6/asyncore.py", line 423, in handle_read_event

self.handle_read()


 "/usr/lib/python3.6/site-packages/yowsup/layers/network/layer.py", line 102, in handle_read

self.receive(data)


 "/usr/lib/python3.6/site-packages/yowsup/layers/network/layer.py", line 110, in receive

self.toUpper(data)


 "/usr/lib/python3.6/site-packages/yowsup/layers/__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "/usr/lib/python3.6/site-packages/yowsup/layers/stanzaregulator/layer.py", line 29, in receive

self.processReceived()


 "/usr/lib/python3.6/site-packages/yowsup/layers/stanzaregulator/layer.py", line 49, in processReceived

self.toUpper(oneMessageData)


 "/usr/lib/python3.6/site-packages/yowsup/layers/__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "/usr/lib/python3.6/site-packages/yowsup/layers/auth/layer_crypt.py", line 65, in receive

self.toUpper(payload)


 "/usr/lib/python3.6/site-packages/yowsup/layers/__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "/usr/lib/python3.6/site-packages/yowsup/layers/coder/layer.py", line 35, in receive

self.toUpper(node)


 "/usr/lib/python3.6/site-packages/yowsup/layers/__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "/usr/lib/python3.6/site-packages/yowsup/layers/logger/layer.py", line 14, in receive

self.toUpper(data)


 "/usr/lib/python3.6/site-packages/yowsup/layers/__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "/usr/lib/python3.6/site-packages/yowsup/layers/axolotl/layer_control.py", line 44, in receive

self.toUpper(protocolTreeNode)


 "/usr/lib/python3.6/site-packages/yowsup/layers/__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "/usr/lib/python3.6/site-packages/yowsup/layers/__init__.py", line 194, in receive

s.receive(data)


 "/usr/lib/python3.6/site-packages/yowsup/layers/axolotl/layer_receive.py", line 41, in receive

self.onMessage(protocolTreeNode)


 "/usr/lib/python3.6/site-packages/yowsup/layers/axolotl/layer_receive.py", line 74, in onMessage

self.handleEncMessage(protocolTreeNode)


 "/usr/lib/python3.6/site-packages/yowsup/layers/axolotl/layer_receive.py", line 88, in handleEncMessage

self.handleWhisperMessage(node)


 "/usr/lib/python3.6/site-packages/yowsup/layers/axolotl/layer_receive.py", line 144, in handleWhisperMessage

self.parseAndHandleMessageProto(encMessageProtocolEntity, plaintext[:-padding])


 "/usr/lib/python3.6/site-packages/yowsup/layers/axolotl/layer_receive.py", line 200, in parseAndHandleMessageProto

self.handleImageMessage(node, m.image_message)


 "/usr/lib/python3.6/site-packages/yowsup/layers/axolotl/layer_receive.py", line 237, in handleImageMessage

self.toUpper(messageNode)


 "/usr/lib/python3.6/site-packages/yowsup/layers/__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "/usr/lib/python3.6/site-packages/yowsup/layers/__init__.py", line 194, in receive

s.receive(data)


 "/usr/lib/python3.6/site-packages/yowsup/layers/__init__.py", line 130, in receive

recv(node)


 "/usr/lib/python3.6/site-packages/yowsup/layers/protocol_media/layer.py", line 42, in recvMessageStanza

self.toUpper(entity)


 "/usr/lib/python3.6/site-packages/yowsup/layers/__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "/usr/lib/python3.6/site-packages/yowsup/layers/interface/interface.py", line 80, in receive

self.entity_callbacks[entityType](entity)


 "/home/sebastian/whatsapp-framework/app/layer.py", line 72, in on_message

message = Message(message_entity)


 "/home/sebastian/whatsapp-framework/app/models/message.py", line 18, in __init__

self.build()


 "/home/sebastian/whatsapp-framework/app/models/message.py", line 24, in build

self.build_media_message()


 "/home/sebastian/whatsapp-framework/app/models/message.py", line 42, in build_media_message

self.file_path = downloader.get_file(self.message_entity)


 "/home/sebastian/whatsapp-framework/app/utils/downloader.py", line 13, in get_file

out_file = decrypt_file(message_entity, enc_path)


 "/home/sebastian/whatsapp-framework/app/utils/downloader.py", line 36, in decrypt_file

key = message_entity.getMediaKey()
AttributeError: 'ImageDownloadableMediaMessageProtocolEntity' object has no attribute 'getMediaKey'
