-
Notifications
You must be signed in to change notification settings - Fork 22
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
Convert dataclasses to pydantic models #245
base: projects/zha-web-socket-server
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## projects/zha-web-socket-server #245 +/- ##
===============================================================
Coverage 96.31% 96.32%
===============================================================
Files 61 62 +1
Lines 9366 9383 +17
===============================================================
+ Hits 9021 9038 +17
Misses 345 345 ☔ View full report in Codecov by Sentry. |
As long as unit tests pass, I think this may actually be something that can be merged straight into |
separate. This is actually auto validating the objects on creation and I want to make sure everything is good before putting it in dev. |
91e6cbb
to
94346b6
Compare
First step towards adding web socket functionality. This PR converts the dataclass objects to Pydantic models so they can be validated, serialized and deserialized between the WS server and clients.
Note: the target branch is a project branch and NOT dev.