Skip to content
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

Add quirks for new Sinopé Load Controller #3195

Merged
merged 9 commits into from
Jun 26, 2024

Conversation

claudegel
Copy link
Contributor

@claudegel claudegel commented Jun 9, 2024

Proposed change

  • Add quirks for the new load controller RM3250ZB
  • Code format

Additional information

New load controller have cluster 0x0002 that is missing in old load controller

Checklist

  • The changes are tested and work correctly
  • pre-commit checks pass / the code has been formatted using Black
  • Tests have been added to verify that the new code works

Copy link

codecov bot commented Jun 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.18%. Comparing base (c6ed94a) to head (6687a15).

Additional details and impacted files
@@           Coverage Diff           @@
##              dev    #3195   +/-   ##
=======================================
  Coverage   88.17%   88.18%           
=======================================
  Files         300      300           
  Lines        9386     9393    +7     
=======================================
+ Hits         8276     8283    +7     
  Misses       1110     1110           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@claudegel claudegel changed the title Add quirks for new Load Controller Add quirks for new Sinopé Load Controller Jun 9, 2024
@@ -326,6 +327,67 @@ class SinopeTechnologiesLoadController(CustomDevice):
}


class SinopeTechnologiesNewLoadController(CustomDevice):
Copy link
Collaborator

@javicalle javicalle Jun 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO bad naming.
I would prefer SinopeTechnologiesLoadController_var02 or similar.
Otherwise you can get sometime a SinopeTechnologiesNewNewLoadController 😉

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better like this SinopeTechnologiesLoadController_V2

Copy link
Collaborator

@TheJulianJES TheJulianJES left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@TheJulianJES TheJulianJES merged commit a7f4859 into zigpy:dev Jun 26, 2024
6 checks passed
@claudegel claudegel deleted the Sinope-thermostat branch June 28, 2024 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants