From 7bda3de4d92c1b00c19c5f45d5990f9e9f6809eb Mon Sep 17 00:00:00 2001 From: Nigel Dokter Date: Sun, 12 Feb 2023 18:34:26 +0100 Subject: [PATCH] issue-51-telegram fix compatibility with changes from master --- test/test_parse_v5.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/test_parse_v5.py b/test/test_parse_v5.py index 088fe74..92612eb 100644 --- a/test/test_parse_v5.py +++ b/test/test_parse_v5.py @@ -265,10 +265,10 @@ class TelegramParserV5Test(unittest.TestCase): ) invalid_date_telegram = invalid_date_telegram.replace('!6EEE\r\n', '!90C2\r\n') parser = TelegramParser(telegram_specifications.V5) - result = parser.parse(invalid_date_telegram) + telegram = parser.parse(invalid_date_telegram) # HOURLY_GAS_METER_READING (0-1:24.2.1) - assert isinstance(result[obis.HOURLY_GAS_METER_READING], MBusObject) - assert result[obis.HOURLY_GAS_METER_READING].unit is None - assert isinstance(result[obis.HOURLY_GAS_METER_READING].value, Decimal) - assert result[obis.HOURLY_GAS_METER_READING].value == Decimal('0.000') + assert isinstance(telegram.HOURLY_GAS_METER_READING, MBusObject) + assert telegram.HOURLY_GAS_METER_READING.unit is None + assert isinstance(telegram.HOURLY_GAS_METER_READING.value, Decimal) + assert telegram.HOURLY_GAS_METER_READING.value == Decimal('0.000')