Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle value specified as bytes received as integer #684

Merged
merged 4 commits into from May 1, 2024

Conversation

marcelveldt
Copy link
Contributor

Somehow some devices send some values (such as the Noc) as integer instead of bytes so our parser chokes on that.
Not sure if this is device related or somehow the tlv parser doesnt handle it but its not super big deal.
Convert it so parsing the values doesnt crash in the client.

Fixes home-assistant/core#116304
Fixes home-assistant/core#113279

tests/common/test_parser.py Outdated Show resolved Hide resolved
@marcelveldt marcelveldt added the bugfix Pull request that fixes a (known) issue/bug label May 1, 2024
@marcelveldt marcelveldt merged commit 5fc265a into main May 1, 2024
4 checks passed
@marcelveldt marcelveldt deleted the fix-parser-error-bytes-int branch May 1, 2024 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Pull request that fixes a (known) issue/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error with setting up Matter (BETA) Tasmota ESP32 Matter Sonoff BasicR4 adding to Home Assistant
2 participants