From 700cf6a2b33119fcc156fcf38956caaf7c4c0791 Mon Sep 17 00:00:00 2001 From: Hans Erik van Elburg Date: Mon, 2 Nov 2020 00:29:03 +0100 Subject: [PATCH] issue#60 resolved issue with x-x:24.3.0 where it contains non-integer characters, parse 2nd value as string instead of integer --- dsmr_parser/telegram_specifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dsmr_parser/telegram_specifications.py b/dsmr_parser/telegram_specifications.py index 1341ded..5029533 100644 --- a/dsmr_parser/telegram_specifications.py +++ b/dsmr_parser/telegram_specifications.py @@ -34,7 +34,7 @@ V2_2 = { obis.VALVE_POSITION_GAS: CosemParser(ValueParser(str)), obis.GAS_METER_READING: MBusParser( ValueParser(timestamp), - ValueParser(int), + ValueParser(str), # changed to str see issue60 ValueParser(int), ValueParser(int), ValueParser(str), # obis ref