home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.65k stars 30.41k forks source link

CryptographyDeprecationWarning from Python Module asyncssh #123560

Closed haforme closed 1 month ago

haforme commented 2 months ago

The problem

Receiving these messages in log after upgrading to 2024.8.1

/usr/local/lib/python3.12/site-packages/asyncssh/crypto/cipher.py:29: CryptographyDeprecationWarning: ARC4 has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.ARC4 and will be removed from this module in 48.0.0. from cryptography.hazmat.primitives.ciphers.algorithms import AES, ARC4 /usr/local/lib/python3.12/site-packages/asyncssh/crypto/cipher.py:30: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0. from cryptography.hazmat.primitives.ciphers.algorithms import TripleDES

What version of Home Assistant Core has the issue?

core-2024.8.1

What was the last working version of Home Assistant Core?

core-2024.7.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Not sure.

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?

/usr/local/lib/python3.12/site-packages/asyncssh/crypto/cipher.py:29: CryptographyDeprecationWarning: ARC4 has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.ARC4 and will be removed from this module in 48.0.0. from cryptography.hazmat.primitives.ciphers.algorithms import AES, ARC4
/usr/local/lib/python3.12/site-packages/asyncssh/crypto/cipher.py:30: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0. from cryptography.hazmat.primitives.ciphers.algorithms import TripleDES

Additional information

No response

bradley-rose commented 2 months ago

I received this message when using the Cryptography library in a custom Python automation I was writing for my employer as well. Not sure this is a Home Assistant specific issue, but following in case there's a quick fix / way to silence the warnings.

haforme commented 1 month ago

Home Assistant Core 2024.8.3 seems to have resolved this.