Home Assistant Unofficial Reference 2024.12.1
helper.py
Go to the documentation of this file.
1 """Helper for OwnTracks."""
2 
3 try:
4  import nacl
5 except ImportError:
6  nacl = None # type: ignore[assignment]
7 
8 
9 def supports_encryption() -> bool:
10  """Test if we support encryption."""
11  return nacl is not None