Skip to content

Conversation

MartinHjelmare
Copy link
Collaborator

@MartinHjelmare MartinHjelmare commented Aug 3, 2017

POTENTIALLY BREAKING CHANGE: Users that are not adhering to the mysensors serial api could face dropped messages after this change. Messages must follow the mysensors api implemented as in pymysensors after this change.

  • Add valid types in const.
  • Add message validation, using voluptuous, called in logic and set_child_value methods.
  • Add child method validate for child value types and child values.
    • This method is not used internally, but for use by user of API.
  • Add child method get_schema, to get a voluptuous schema for the child.
  • Handle persistence and fix pickle persistence.
  • Allow custom forecast values.
  • Add tests.

* Add valid types in const.
* Add message validation called in logic and set_child_value methods.
* Add child method validate for child value types and child values.
  * This method is not used internally, but for use by user of API.
* Add protocol_version attribute to ChildSensor class.
* Handle persistence and fix pickle persistence.
* Allow custom forecast values.
* Add tests.
@MartinHjelmare
Copy link
Collaborator Author

Need to check and update persistence tests.

* Put protocol_version as an argument to the child validate method
  instead of as an attribute of the child.
* Update tests.
@MartinHjelmare MartinHjelmare reopened this Aug 4, 2017
@MartinHjelmare MartinHjelmare merged commit ab2149f into theolind:dev Aug 4, 2017
@MartinHjelmare MartinHjelmare deleted the add-value-validation branch August 4, 2017 19:45
@MartinHjelmare MartinHjelmare mentioned this pull request Aug 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant