core
core copied to clipboard
Error Python 3.11 / AOI Home Kit
The problem
Could be linked with #93213
2023-08-05 21:21:35.702 ERROR (MainThread) [homeassistant] Error doing job: Fatal error: protocol.data_received() call failed. Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/aiohomekit/controller/ip/connection.py", line 188, in data_received decrypted = self.decryptor.decrypt( ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aiohomekit/crypto/chacha20poly1305.py", line 95, in decrypt return self.chacha.decrypt(nonce, ciphertext, aad) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "src/chacha20poly1305_reuseable/init.py", line 155, in chacha20poly1305_reuseable.ChaCha20Poly1305Reusable.decrypt File "src/chacha20poly1305_reuseable/init.py", line 277, in chacha20poly1305_reuseable._decrypt_with_fixed_nonce_len File "src/chacha20poly1305_reuseable/init.py", line 287, in chacha20poly1305_reuseable._decrypt_data cryptography.exceptions.InvalidTag
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/usr/local/lib/python3.11/asyncio/selector_events.py", line 1003, in _read_ready__data_received self._protocol.data_received(data) File "/usr/local/lib/python3.11/site-packages/aiohomekit/controller/ip/connection.py", line 194, in data_received raise RuntimeError("Could not decrypt block") from err RuntimeError: Could not decrypt block
What version of Home Assistant Core has the issue?
2023.8.1
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
AIO Homekit
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response