From 7006324e4c053f7510914374ac094b363cd99677 Mon Sep 17 00:00:00 2001 From: Marc Koderer Date: Mon, 18 May 2026 17:02:35 +0200 Subject: [PATCH] Fix parse_data return type annotation to match actual 3-value return The function returns (data, number_of_panels, control_code) but the type hint declared only a 2-tuple, causing type checker errors. --- envertech_local/protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/envertech_local/protocol.py b/envertech_local/protocol.py index b18ad3e..9fc7b65 100644 --- a/envertech_local/protocol.py +++ b/envertech_local/protocol.py @@ -39,7 +39,7 @@ async def receive_data(self, timeout=5): except asyncio.TimeoutError: return None - def parse_data(self, raw: list[int]) -> tuple[dict, int | None]: + def parse_data(self, raw: list[int]) -> tuple[dict, int | None, int]: if not raw or len(raw) < 22: return {}, None