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

Fix missing endpoints for Aqara H1 wireless remotes #3674

Conversation

TheJulianJES
Copy link
Collaborator

@TheJulianJES TheJulianJES commented Jan 4, 2025

Proposed change

Fix missing endpoints for Aqara H1 wireless remotes.

The device sometimes doesn't report these endpoints as available, so quirks v2 code that adds or replaces clusters on those endpoints will cause ZHA to break.
Zigpy now allows us to add these endpoints to the zigpy device, so we can also add clusters to the endpoints in the same quirk without issues.

Additional information

Addresses home-assistant/core#134686 and home-assistant/core#134691.
Follow-up to #3564

This needs zigpy/zigpy#1524 and a corresponding zigpy bump, then a rebase before tests will pass. (done)

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

@TheJulianJES TheJulianJES added bugfix This PR fixes a bug Xiaomi Request/PR regarding a Xiaomi device labels Jan 4, 2025
@TheJulianJES TheJulianJES mentioned this pull request Jan 4, 2025
3 tasks
The device sometimes doesn't report these endpoints as available, so quirks v2 code that `adds` or `replaces` clusters on those endpoints will cause ZHA to break.
Zigpy now allows us to add these endpoints to the zigpy device, so we can also add clusters to the endpoints in the same quirk without issues.
@TheJulianJES TheJulianJES force-pushed the tjj/fix_aqara_h1_remotes_endpoints_v2_quirks branch from 59e4ba3 to 3a661f4 Compare January 4, 2025 23:40
Copy link

codecov bot commented Jan 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.85%. Comparing base (5b001f1) to head (a8b44be).
Report is 2 commits behind head on dev.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev    #3674   +/-   ##
=======================================
  Coverage   89.85%   89.85%           
=======================================
  Files         322      322           
  Lines       10379    10380    +1     
=======================================
+ Hits         9326     9327    +1     
  Misses       1053     1053           

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

@TheJulianJES TheJulianJES marked this pull request as ready for review January 4, 2025 23:43
@TheJulianJES TheJulianJES merged commit e3d3849 into zigpy:dev Jan 4, 2025
9 checks passed
@phil-lipp
Copy link

Is there a way to update zha directly or do we need for HA Core to update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This PR fixes a bug Xiaomi Request/PR regarding a Xiaomi device
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants