From 69b7b163c106cc687d71d06d8742dc0644d3ed39 Mon Sep 17 00:00:00 2001 From: Sam Stenvall Date: Wed, 11 Sep 2024 08:20:51 +0300 Subject: [PATCH] Use -1 shorthand Co-authored-by: Akseli Lukkarila --- custom_components/vinx/lw3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/vinx/lw3.py b/custom_components/vinx/lw3.py index 379c589..07b2bb3 100644 --- a/custom_components/vinx/lw3.py +++ b/custom_components/vinx/lw3.py @@ -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: