Skip to content

Conversation

RyanMorash
Copy link
Contributor

@RyanMorash RyanMorash commented Aug 3, 2025

Proposed change

This pull request updates the PhilipsWallSwitch device definitions to differentiate between devices using old and new firmware.

Additional information

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

@Copilot Copilot AI review requested due to automatic review settings August 3, 2025 04:04
Copy link

@Copilot Copilot AI left a 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 to PhilipsWallSwitchNewFirmware and expanded its model support
  • Added support for both RDM001 and RDM004 models in the new firmware class

Copy link

codecov bot commented Aug 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.11%. Comparing base (04c6292) to head (09b4b6b).
⚠️ Report is 2 commits behind head on dev.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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! Looks good

@TheJulianJES TheJulianJES changed the title Phillips Hue wall switch firmware changes Support more Phillips Hue wall switch firmwares Aug 24, 2025
@TheJulianJES TheJulianJES merged commit 7e5e913 into zigpy:dev Aug 24, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants