Skip to content

decode_packet: too many values to unpack (expected 2) #38

@akasma74

Description

@akasma74

I use rflink integration in my HA setup and often get this in HA log:

2020-01-22 07:49:56 ERROR (MainThread) [rflink.protocol] failed to parse packet: None
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 152, in handle_raw_packet
packet = decode_packet(raw_packet)
File "/usr/local/lib/python3.7/site-packages/rflink/parser.py", line 308, in decode_packet
key, value = attr.lower().split("=")
ValueError: too many values to unpack (expected 2)

Obvoiusly there is no impact on the functionality, but the messages flood the log.
I hope it's possible to rewrite the code so it account for situations like this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions