Skip to content

Refactor hex and int string conversion methods - #41

Merged
GreenGrassBlueOcean merged 1 commit into
OpenWebNet-HA:masterfrom
gdluck:patch-2
Sep 17, 2026
Merged

GreenGrassBlueOcean merged 1 commit into
OpenWebNet-HA:masterfrom
gdluck:patch-2

Conversation

@gdluck

@gdluck gdluck commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@GreenGrassBlueOcean GreenGrassBlueOcean left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great refactor! Replacing the manual string concatenations with generator expressions and "".join() makes the code much more Pythonic and efficient. I've verified that this maintains 100% functional parity with the original methods, correctly preserving the OpenWebNet protocol's specific padding requirements. Approved.

@GreenGrassBlueOcean
GreenGrassBlueOcean merged commit 598fbf8 into OpenWebNet-HA:master Sep 17, 2026
8 checks passed
@gdluck
gdluck deleted the patch-2 branch September 17, 2026 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants