Skip to content

Commit

Permalink
fix(core): klap now retry to perform handshake when request fail
Browse files Browse the repository at this point in the history
  • Loading branch information
petretiandrea committed Apr 8, 2024
1 parent e2dade3 commit 2c7419d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugp100/protocol/klap/klap_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ async def send_request(
async def _send_request(self, request: TapoRequest, retry: int = 1) -> dict[str, Any]:
if (
self._klap_session is None
or not self._klap_session.is_handshake_session_expired()
or self._klap_session.is_handshake_session_expired()
):
self._klap_session = None
self._klap_session = await self.perform_handshake()
Expand Down

0 comments on commit 2c7419d

Please sign in to comment.