linting
This commit is contained in:
parent
d793daf363
commit
b106a15579
dsmr_parser
@ -21,7 +21,9 @@ def create_dsmr_protocol(dsmr_version, telegram_callback, loop=None, **kwargs):
|
|||||||
return protocol
|
return protocol
|
||||||
|
|
||||||
|
|
||||||
def _create_dsmr_protocol(dsmr_version, telegram_callback, protocol, loop=None, **kwargs):
|
# pylama noqa - because of "complex" (too long) if-elif-else.
|
||||||
|
# Match - case might be a solution but it is not available in <3.10
|
||||||
|
def _create_dsmr_protocol(dsmr_version, telegram_callback, protocol, loop=None, **kwargs): #noqa
|
||||||
"""Creates a DSMR asyncio protocol."""
|
"""Creates a DSMR asyncio protocol."""
|
||||||
|
|
||||||
if dsmr_version == '2.2':
|
if dsmr_version == '2.2':
|
||||||
|
@ -94,8 +94,10 @@ class TelegramParser(object):
|
|||||||
try:
|
try:
|
||||||
dsmr_object = object["value_parser"].parse(match)
|
dsmr_object = object["value_parser"].parse(match)
|
||||||
except ParseError:
|
except ParseError:
|
||||||
logger.error("ignore line with signature {}, because parsing failed.".format(object["obis_reference"]),
|
logger.error(
|
||||||
exc_info=True)
|
"ignore line with signature {}, because parsing failed.".format(object["obis_reference"]),
|
||||||
|
exc_info=True
|
||||||
|
)
|
||||||
if throw_ex:
|
if throw_ex:
|
||||||
raise
|
raise
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
|
@ -1203,7 +1203,7 @@ ISKRA_IE = {
|
|||||||
EON_HUNGARY = {
|
EON_HUNGARY = {
|
||||||
# Revision: 2023.02.10
|
# Revision: 2023.02.10
|
||||||
# Based on V5
|
# Based on V5
|
||||||
# Reference: https://www.eon.hu/content/dam/eon/eon-hungary/documents/Lakossagi/aram/muszaki-ugyek/p1_port%20felhaszn_interfesz_taj_%2020230210.pdf
|
# Reference: https://www.eon.hu/content/dam/eon/eon-hungary/documents/Lakossagi/aram/muszaki-ugyek/p1_port%20felhaszn_interfesz_taj_%2020230210.pdf # noqa
|
||||||
'checksum_support': True,
|
'checksum_support': True,
|
||||||
'objects': [
|
'objects': [
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user