From 237da026cf40cd7dd39492f5c9fe6c0550d1706f 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 d97a5e60da..a440ceffdb 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(