Skip to content

Commit

Permalink
Wrap PACK_NONCE in staticmethod
Browse files Browse the repository at this point in the history
home-assistant/core#131769

`2024-11-27 22:07:37.884 WARNING (MainThread) [py.warnings] /usr/local/lib/python3.13/site-packages/noise/backends/default/ciphers.py:13: FutureWarning: functools.partial will be a method descriptor in future Python versions; wrap it in staticmethod() if you want to preserve the old behavior
`
  • Loading branch information
bdraco committed Nov 27, 2024
1 parent aa40e10 commit ccc73f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aioesphomeapi/_frame_helper/noise.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
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]:
Expand Down

0 comments on commit ccc73f3

Please sign in to comment.