From 7d28d0e3709a5ab581d754ff7075899cad516dc2 Mon Sep 17 00:00:00 2001 From: Ronald Pijnacker Date: Mon, 3 Jan 2022 21:25:19 +0100 Subject: [PATCH] Update according to coding style --- dsmr_parser/clients/rfxtrx_protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dsmr_parser/clients/rfxtrx_protocol.py b/dsmr_parser/clients/rfxtrx_protocol.py index 281f4c2..e4080a2 100644 --- a/dsmr_parser/clients/rfxtrx_protocol.py +++ b/dsmr_parser/clients/rfxtrx_protocol.py @@ -49,7 +49,7 @@ class RFXtrxDSMRProtocol(DSMRProtocol): data = self.remaining_data + data - while (len(data) > 0 and (packetlength := data[0]+1) <= len(data)): + while len(data) > 0 and (packetlength := data[0] + 1) <= len(data): packettype = data[1] subtype = data[2] if (packettype == PACKETTYPE_DSMR and subtype == SUBTYPE_P1):