mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-23 15:58:02 +00:00
Log smartprotocol requests (#575)
* Log smartprotocol requests Also, comment out encrypted secure_passthrough response for the time being * Fix linting
This commit is contained in:
@@ -122,7 +122,7 @@ class AesTransport(BaseTransport):
|
||||
"params": {"request": encrypted_payload.decode()},
|
||||
}
|
||||
status_code, resp_dict = await self.client_post(url, json=passthrough_request)
|
||||
_LOGGER.debug(f"secure_passthrough response is {status_code}: {resp_dict}")
|
||||
# _LOGGER.debug(f"secure_passthrough response is {status_code}: {resp_dict}")
|
||||
if status_code == 200 and resp_dict["error_code"] == 0:
|
||||
response = self._encryption_session.decrypt( # type: ignore
|
||||
resp_dict["result"]["response"].encode()
|
||||
|
Reference in New Issue
Block a user