mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-22 19:23:34 +00:00
Fix local_nonce None
This commit is contained in:
parent
6bfb19a748
commit
aba71744ca
@ -8,7 +8,6 @@ import hashlib
|
||||
import logging
|
||||
import secrets
|
||||
import ssl
|
||||
import uuid
|
||||
from enum import Enum, auto
|
||||
from typing import TYPE_CHECKING, Any, cast
|
||||
|
||||
@ -492,8 +491,8 @@ class SslAesTransport(BaseTransport):
|
||||
async def perform_handshake1(self) -> tuple[str, str, str] | None:
|
||||
"""Perform the handshake1."""
|
||||
resp_dict = None
|
||||
if self._username:
|
||||
local_nonce = secrets.token_bytes(8).hex().upper()
|
||||
if self._username:
|
||||
resp_dict = await self.try_send_handshake1(self._username, local_nonce)
|
||||
|
||||
if (
|
||||
|
Loading…
Reference in New Issue
Block a user