From 7a42f20cd3d759591af3d773089286a64532c500 Mon Sep 17 00:00:00 2001 From: Robin GROSS Date: Tue, 28 Nov 2023 00:46:56 +0100 Subject: [PATCH] fix from_knx for MemoryExtendedWrite --- xknx/telegram/apci.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xknx/telegram/apci.py b/xknx/telegram/apci.py index d97a5e60d..a440ceffd 100644 --- a/xknx/telegram/apci.py +++ b/xknx/telegram/apci.py @@ -529,7 +529,7 @@ def calculated_length(self) -> int: @classmethod def from_knx(cls, raw: bytes) -> MemoryExtendedWrite: """Parse/deserialize from KNX/IP raw data.""" - size = len(raw) - 5 + size = len(raw) - 6 # inject [0x00] before 3 bytes address to enable unsigned int unpack count, address, data = struct.unpack(