mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-12-28 07:30:24 +00:00
Add flake8-logging (LOG) and flake8-logging-format (G) for ruff (#1104)
Enables rules LOG (flake8-logging) and G (flake8-logging-format) for ruff. This will catch eager log message formatting, among other similar issues.
This commit is contained in:
@@ -278,9 +278,8 @@ class AesTransport(BaseTransport):
|
||||
+ "\n-----END PUBLIC KEY-----\n"
|
||||
)
|
||||
handshake_params = {"key": pub_key}
|
||||
_LOGGER.debug(f"Handshake params: {handshake_params}")
|
||||
request_body = {"method": "handshake", "params": handshake_params}
|
||||
_LOGGER.debug(f"Request {request_body}")
|
||||
_LOGGER.debug("Handshake request: %s", request_body)
|
||||
yield json_dumps(request_body).encode()
|
||||
|
||||
async def perform_handshake(self) -> None:
|
||||
|
||||
Reference in New Issue
Block a user