-
Notifications
You must be signed in to change notification settings - Fork 855
Support more Phillips Hue wall switch firmwares #4228
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
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.
Pull Request Overview
This PR differentiates between Philips wall switch devices based on firmware versions by updating class names and documentation to clarify which devices use old versus new firmware.
- Updated existing
PhilipsWallSwitch
class documentation to specify it's for old firmware devices - Renamed
PhilipsWallSwitchRDM004
toPhilipsWallSwitchNewFirmware
and expanded its model support - Added support for both RDM001 and RDM004 models in the new firmware class
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #4228 +/- ##
=======================================
Coverage 92.11% 92.11%
=======================================
Files 357 357
Lines 11878 11878
=======================================
Hits 10941 10941
Misses 937 937 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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! Looks good
Proposed change
This pull request updates the
PhilipsWallSwitch
device definitions to differentiate between devices using old and new firmware.PhilipsWallSwitch
class to specify that it represents devices using old firmware. (zhaquirks/philips/wall_switch.py
, zhaquirks/philips/wall_switch.pyL91-R91)PhilipsWallSwitchRDM004
class toPhilipsWallSwitchNewFirmware
and updated its docstring to reflect support for devices using new firmware. (zhaquirks/philips/wall_switch.py
, zhaquirks/philips/wall_switch.pyL152-R161)MODELS_INFO
in thePhilipsWallSwitchNewFirmware
class to include both RDM001 and RDM004 models. (zhaquirks/philips/wall_switch.py
, zhaquirks/philips/wall_switch.pyL152-R161)Additional information
Checklist
pre-commit
checks pass / the code has been formatted using Black