added new protocol version

This commit is contained in:
root 2023-07-16 00:21:52 +02:00
parent d072dc4d4b
commit f2c785f2e1

View File

@ -51,6 +51,9 @@ def _create_dsmr_protocol(dsmr_version, telegram_callback, protocol, loop=None,
elif dsmr_version == 'ISKRA_IE': elif dsmr_version == 'ISKRA_IE':
specification = telegram_specifications.ISKRA_IE specification = telegram_specifications.ISKRA_IE
serial_settings = SERIAL_SETTINGS_V5 serial_settings = SERIAL_SETTINGS_V5
elif dsmr_version == '5EONHU':
specification = telegram_specifications.HUNGARY_EON
serial_settings = SERIAL_SETTINGS_V5
else: else:
raise NotImplementedError("No telegram parser found for version: %s", raise NotImplementedError("No telegram parser found for version: %s",
dsmr_version) dsmr_version)