Skip to content

Commit

Permalink
Use -1 shorthand
Browse files Browse the repository at this point in the history
Co-authored-by: Akseli Lukkarila <[email protected]>
  • Loading branch information
Jalle19 and Esgrove authored Sep 11, 2024
1 parent c02cca5 commit 69b7b16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/vinx/lw3.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def parse_response(response: str) -> Response:
if len(lines) == 3:
return parse_single_line_response(lines[1])
else:
return parse_multiline_response(lines[1 : len(lines) - 1])
return parse_multiline_response(lines[1:-1])


def is_encoder_discovery_node(node: Response) -> bool:
Expand Down

0 comments on commit 69b7b16

Please sign in to comment.