If I only use my key, I get
2017-05-31 13:23:58 ERROR (MainThread) [homeassistant.setup] Error during setup of component xiaomi
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/setup.py”, line 188, in _async_setup_component
None, component.setup, hass, processed_config)
File “/usr/local/lib/python3.6/concurrent/futures/thread.py”, line 55, in run
result = self.fn(*self.args, **self.kwargs)
File “/home/pi/.homeassistant/custom_components/xiaomi.py”, line 77, in setup
PY_XIAOMI_GATEWAY.discover_gateways()
File “/home/pi/.homeassistant/custom_components/xiaomi.py”, line 167, in discover_gateways
self.gateways[ip_add] = XiaomiGateway(ip_add, port, sid, gateway_key, self._socket)
File “/home/pi/.homeassistant/custom_components/xiaomi.py”, line 262, in init
if self._discover_devices():
File “/home/pi/.homeassistant/custom_components/xiaomi.py”, line 271, in _discover_devices
self.update_key(resp[“token”])
File “/home/pi/.homeassistant/custom_components/xiaomi.py”, line 368, in update_key
from Crypto.Cipher import AES
File “/home/pi/.homeassistant/deps/Crypto/Cipher/AES.py”, line 50, in
from Crypto.Cipher import _AES
ImportError: cannot import name ‘_AES’
Edit: I get get this w/ both pycrypto and pycryptodome