From cf771776cdc4d8e3323292782e78541d99448705 Mon Sep 17 00:00:00 2001 From: Johan Bloemberg Date: Mon, 7 Nov 2016 20:04:59 +0100 Subject: [PATCH] Fix console imports. --- .gitignore | 1 + dsmr_parser/serial.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index a66f5e5..83f3764 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ *.pyc .tox .cache +*.egg-info diff --git a/dsmr_parser/serial.py b/dsmr_parser/serial.py index 114244c..3e7aa70 100644 --- a/dsmr_parser/serial.py +++ b/dsmr_parser/serial.py @@ -1,6 +1,6 @@ import serial -from dsmr_parser.parsers import TelegramParser, V3TelegramParser +from dsmr_parser.parsers import TelegramParser, TelegramParserV2_2 SERIAL_SETTINGS_V2_2 = { 'baudrate': 9600, @@ -38,7 +38,7 @@ class SerialReader(object): self.serial_settings['port'] = device if serial_settings is SERIAL_SETTINGS_V2_2: - telegram_parser = V3TelegramParser + telegram_parser = TelegramParserV2_2 else: telegram_parser = TelegramParser self.telegram_parser = telegram_parser(telegram_specification)