Broadlink ERROR

Broadlink switch module reported error below
It happens on Broadlink 0.3 and 0.5 as well
Anybody see this problem?

2017-08-31 14:43:57 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform broadlink
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py", line 164, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
  File "/usr/lib/python3.4/asyncio/tasks.py", line 372, in wait_for
    return fut.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/switch/broadlink.py", line 142, in setup_platform
    broadlink_device.auth()
  File "/root/.homeassistant/deps/lib/python3.4/site-packages/broadlink/__init__.py", line 203, in auth
    response = self.send_packet(0x65, payload)
  File "/root/.homeassistant/deps/lib/python3.4/site-packages/broadlink/__init__.py", line 258, in send_packet
    payload = self.encrypt(payload)
  File "/root/.homeassistant/deps/lib/python3.4/site-packages/broadlink/__init__.py", line 162, in encrypt_pyaes
    return "".join([aes.encrypt(bytes(payload[i:i+16])) for i in range(0, len(payload), 16)])
TypeError: sequence item 0: expected str instance, bytes found

I install pyaes but if not install pyaes then has this problem
Anything missing?

2017-08-31 15:17:56 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform broadlink
Traceback (most recent call last):
  File "/root/.homeassistant/deps/lib/python3.4/site-packages/broadlink/__init__.py", line 5, in <module>
    from Crypto.Cipher import AES
ImportError: cannot import name 'AES'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py", line 164, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
  File "/usr/lib/python3.4/asyncio/tasks.py", line 372, in wait_for
    return fut.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/switch/broadlink.py", line 61, in setup_platform
    import broadlink
  File "/root/.homeassistant/deps/lib/python3.4/site-packages/broadlink/__init__.py", line 7, in <module>
    import pyaes
ImportError: No module named 'pyaes'

Ahhh … found the solution which not commited yet in v.0.5

I upgrade broadlink 0.6 and now broken again
Implement patch doesn’t work
I’m surprised nobody has this problem?
Am I missing something?

I have this same problem with a new install and broadlink 0.6 any idea how to fix it?