mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2025-03-12 13:29:49 +01:00
Wrap PACK_NONCE in staticmethod (#1002)
This commit is contained in:
parent
aa40e10f76
commit
472d6888ff
@ -38,7 +38,7 @@ _bytes = bytes
|
||||
class ChaCha20CipherReuseable(ChaCha20Cipher): # type: ignore[misc]
|
||||
"""ChaCha20 cipher that can be reused."""
|
||||
|
||||
format_nonce = PACK_NONCE
|
||||
format_nonce = staticmethod(PACK_NONCE)
|
||||
|
||||
@property
|
||||
def klass(self) -> type[ChaCha20Poly1305Reusable]:
|
||||
|
Loading…
Reference in New Issue
Block a user