Hi Allan,
Thank you for replying.
I don’t use encryption, even though the error seems to be encryption related, possibly even a python library. See further below for a full stack trace. I will scratch more on the python side and see what I can find.
The ‘sia’ folder has been added to my custom_components folder, where I also run other custom components.
Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/homeassistant/setup.py”, line 156, in _async_setup_component
component.setup, hass, processed_config) # type: ignore
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/Users/moodiejo/.homeassistant/custom_components/sia/init.py”, line 83, in setup
hass.data[DOMAIN][hub_config[CONF_ACCOUNT]] = EncryptedHub(hass, hub_config)
File “/Users/moodiejo/.homeassistant/custom_components/sia/init.py”, line 160, in init
_cipher = AES.new(self._key, AES.MODE_CBC, iv)
File “/Users/moodiejo/.homeassistant/deps/lib/python/site-packages/Crypto/Cipher/AES.py”, line 232, in new
return _create_cipher(sys.modules[name], key, mode, *args, **kwargs)
File “/Users/moodiejo/.homeassistant/deps/lib/python/site-packages/Crypto/Cipher/init.py”, line 79, in _create_cipher
return modes[mode](factory, **kwargs)
File “/Users/moodiejo/.homeassistant/deps/lib/python/site-packages/Crypto/Cipher/_mode_cbc.py”, line 274, in _create_cbc_cipher
cipher_state = factory._create_base_cipher(kwargs)
File “/Users/moodiejo/.homeassistant/deps/lib/python/site-packages/Crypto/Cipher/AES.py”, line 93, in _create_base_cipher
raise ValueError(“Incorrect AES key length (%d bytes)” % len(key))
ValueError: Incorrect AES key length (15 bytes)