Skip to content
Prev Previous commit
Next Next commit
Apply ruff format to smartprotocol list comprehension.
Fixes pre-commit ruff-format failure on PR #1718.

Co-authored-by: Cursor <cursoragent@cursor.com>
  • Loading branch information
jimboca and cursoragent committed Jul 8, 2026
commit 665b60caed5fb602e91fee244a58988adcca97e7
4 changes: 1 addition & 3 deletions kasa/protocols/smartprotocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,7 @@ async def _handle_response_lists(
return

list_keys = [
key
for key in response_result
if isinstance(response_result[key], list)
key for key in response_result if isinstance(response_result[key], list)
]
if not list_keys:
# H500-style hubs: start_index/sum without a list field (e.g.
Expand Down
Loading