-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Types & serialization #32
Merged
Conversation
This file contains 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
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #32 +/- ##
===========================================
- Coverage 83.80% 60.42% -23.38%
===========================================
Files 46 43 -3
Lines 636 657 +21
Branches 62 88 +26
===========================================
- Hits 533 397 -136
- Misses 103 258 +155
- Partials 0 2 +2 ☔ View full report in Codecov by Sentry. |
31 tasks
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.
📬 Changes
General
Added serialization and validation support for setting entity configuration values.
Some properties actually will care about what data they take in / return back now
Date Entities
Allow setting
dayjs
|date
|iso
as anative_value
type. Anythingdayjs
can work with is valid, but the timestamp will always be reset to start of dayDateTime Entities
Same as
date
, but no loss of time portionSelect Entities
No functional changes, but added the ability to declare options
Sensor Entities
Sensors may take in a variety of state types now, but which ones actually work will depend on the
device_class
of the sensor. The type definitions have been adjusted for a lot of the device classes to help better surface the optional (and required) attributes for a specific classInternals Upgrade
Migrate to new core testing utils, change over to esm, upgrade eslint
🗒️ Checklist