-
Notifications
You must be signed in to change notification settings - Fork 35
fix: NLIS module, remove the device_categroy type of the base module entity #529
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
Conversation
Reviewer's GuideThis pull request updates the NLIS module implementation so that only the contactor entities are assigned a device_category, while the base module entity has device_category set to None, and adds corresponding test coverage. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @fabienduval - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟡 Testing: 1 issue found
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
cgtobi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution @fabienduval
| assert module.power == 0 | ||
|
|
||
|
|
||
| @pytest.mark.asyncio() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For next time, No need for this mark, pytest-asyncio is set in auto mode (I'm currently in a work to remove all of this asyncio marks)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the heads up @jabesq
The NLIS module is represented with 3 modules in the API:
Only the contactors can be controlled.
Summary by Sourcery
Update NLIS module handling to prevent assigning a device_category to the base module entity, reflecting that only contactors are controllable, and add corresponding tests.
Bug Fixes:
Tests: