Repository navigation
Raise ValueError for the invalid producer input 0.25.0 warned about - #120
Merged
Merged
Conversation
) The ten reasons warned about since 0.25.0 now raise before anything is published or attached: from the Property constructor (so from_dict, add_property_from_dict and the declaration builders), set_format, Device(description_extras=...) and publish_alert. _warn_invalid_once stays for the warn-only checks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VUQ6apRySRNW8y3ppJMdJC
…nput # Conflicts: # CHANGELOG.md # tests/test_homie_compliance.py
1 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #91: the raise step promised by 0.25.0 for its warnings.
Breaking. The ten reasons (
propertyRetainedNull,propertyDatatypeMissing,propertyDatatypeUnknown,propertyFormatMissing,propertyEnumFormatEmptyValue,propertyEnumFormatDuplicate,propertyColorFormatInvalid,deviceDescriptionExtrasCoreFieldDropped,devicePublishAlertIdFormat,devicePublishAlertEmptyMessage) raiseValueErrorbefore anything is published or attached, with the samereason=fields.PropertySpecchecks at declaration time so a builder never stops half-way._warn_invalid_oncestays for the warn-only checks in #92. #114 tracks the remaining inconsistency inpublish_alert()id handling.🤖 Generated with Claude Code
https://claude.ai/code/session_01VUQ6apRySRNW8y3ppJMdJC