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

Do not crash on extranous urn components #1693

Merged
merged 2 commits into from
Jan 26, 2023

Conversation

rytilahti
Copy link
Owner

Store the unexpected components inside 'unexpected', e.g., urn:miot-spec-v2:service:device-information:00007801:yeelink-sw1:1:0000C809 spotted for yeelink.switch.sw1.

Also, miotsimulator now dumps the schema file in case pydantic cannot validate it for easier debugging.

Store the unexpected components inside 'unexpected'

Spotted for yeelink.switch.sw1, e.g., urn:miot-spec-v2:service:device-information:00007801:yeelink-sw1:1:0000C809

also, miotsimulator now dumps the schema file in case pydantic cannot validate it
@rytilahti rytilahti added the bug label Jan 26, 2023
@rytilahti rytilahti merged commit 86eaf9e into master Jan 26, 2023
@rytilahti rytilahti deleted the fix/handle_unexpecteds_in_urns branch January 26, 2023 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant