Update according to coding style

This commit is contained in:
Ronald Pijnacker 2022-01-03 21:25:19 +01:00
parent c082cf4868
commit 7d28d0e370

View File

@ -49,7 +49,7 @@ class RFXtrxDSMRProtocol(DSMRProtocol):
data = self.remaining_data + data 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] packettype = data[1]
subtype = data[2] subtype = data[2]
if (packettype == PACKETTYPE_DSMR and subtype == SUBTYPE_P1): if (packettype == PACKETTYPE_DSMR and subtype == SUBTYPE_P1):