Skip to content

Commit

Permalink
Merge pull request #696 from Morg42/develop
Browse files Browse the repository at this point in the history
lib.smarthome: skip deprecation warnings for decrepit ciphers on macOS
  • Loading branch information
Morg42 authored Dec 8, 2024
2 parents 374716e + e52dd82 commit 531ce89
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/smarthome.py
Original file line number Diff line number Diff line change
Expand Up @@ -1034,6 +1034,9 @@ def _object_refcount(self):
objects = {}
for module in list(sys.modules.values()):
for sym in dir(module):
# skip deprecation warning on MacOS, these ciphers shouldn't be used anyway
if module.__name__ == 'cryptography.hazmat.primitives.ciphers.algorithms' and sym in ['Blowfish', 'CAST5', 'IDEA', 'SEED', 'TripleDES', 'ARC4']:
continue
try:
obj = getattr(module, sym)
if isinstance(obj, type):
Expand Down

0 comments on commit 531ce89

Please sign in to comment.