Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Move the 401 comment above the check and make it generic
  • Loading branch information
freeKC committed Oct 1, 2026
commit 27c08800280bcf0c0fceb7a77f4b548bd152031d
4 changes: 2 additions & 2 deletions kasa/transports/sslaestransport.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,9 @@ async def send_secure_passthrough(self, request: str) -> dict[str, Any]:
_LOGGER.debug(msg)
raise _RetryableError(msg)

# Some devices answer 401 when the session has expired and they
# require a new handshake: reauthenticate and retry the request.
if status_code == 401:
# The camera dropped the session (a C220 on 1.4.4 does this about
# every ten minutes): handshake again and retry the request.
_LOGGER.debug(
"Device %s replied with status 401 to passthrough, "
"session expired, handshake required",
Expand Down
Loading