Skip to content

MSC telegrams#25

Merged
ChristopheHD merged 19 commits intomasterfrom
msc
Jan 29, 2026
Merged

MSC telegrams#25
ChristopheHD merged 19 commits intomasterfrom
msc

Conversation

@ChristopheHD
Copy link
Owner

@ChristopheHD ChristopheHD added the enhancement New feature or request label Dec 10, 2025
@coveralls
Copy link

coveralls commented Dec 10, 2025

Pull Request Test Coverage Report for Build 21483484380

Details

  • 21 of 25 (84.0%) changed or added relevant lines in 4 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+0.9%) to 38.644%

Changes Missing Coverage Covered Lines Changed/Added Lines %
enocean/protocol/eep.py 0 2 0.0%
enocean/protocol/packet.py 0 2 0.0%
Files with Coverage Reduction New Missed Lines %
enocean/protocol/eep.py 1 0.0%
Totals Coverage Status
Change from base Build 20711672079: 0.9%
Covered Lines: 473
Relevant Lines: 1224

💛 - Coveralls

ChristopheHD and others added 14 commits January 8, 2026 16:01
Added test for creating RadioPacket with MSC parameters.
Added a print statement to output serialized packet data during the test.
Refactor RadioPacket creation for better readability and maintainability.
Updated PACKET_CONTENT_5 to change specific byte values.
When parsing an EnOcean packet, if an enum value or rangeitem is not found
in the EEP XML definition, the parser would raise an AttributeError because
it tried to call .get() on a None object.

This commit adds a robust check and a fallback to returning the raw value
as a string when the description is missing.

Added a regression test in enocean/protocol/tests/test_eep.py.

Co-authored-by: ChristopheHD <16214389+ChristopheHD@users.noreply.github.com>
…79357758187

Fix AttributeError in EEP parser for missing enum values
@ChristopheHD ChristopheHD merged commit 6f5526a into master Jan 29, 2026
7 checks passed
@ChristopheHD ChristopheHD deleted the msc branch January 29, 2026 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants