-
Notifications
You must be signed in to change notification settings - Fork 5
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
Print native string value instead Enum when using ExternalDevice.DeviceType value #478
Conversation
WalkthroughThe pull request introduces significant changes to the HomeWizard Energy models, primarily focusing on enum handling and data structure modifications. The Changes
Sequence DiagramsequenceDiagram
participant Models as Models Module
participant DeviceType as DeviceType Enum
participant Measurement as Measurement Class
participant CombinedModels as CombinedModels Class
Models->>DeviceType: Convert from Enum to StrEnum
Models->>Measurement: Update serialization methods
Measurement-->>CombinedModels: Adjust attribute locations
CombinedModels->>Models: Implement backward compatibility
Possibly related PRs
Suggested labels
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (5)
⏰ Context from checks skipped due to timeout of 90000ms (2)
🔇 Additional comments (7)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #478 +/- ##
=======================================
Coverage 99.62% 99.62%
=======================================
Files 8 8
Lines 539 539
Branches 40 40
=======================================
Hits 537 537
Misses 1 1
Partials 1 1 ☔ View full report in Codecov by Sentry. |
Summary by CodeRabbit
Release Notes
New Features
Bug Fixes
Refactor
Documentation