8000 Claim cluster handlers during device configuration by puddly · Pull Request #399 · zigpy/zha · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Claim cluster handlers during device configuration #399

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

Merged
merged 3 commits into from
Mar 20, 2025

Conversation

puddly
Copy link
Contributor
@puddly puddly commented Mar 20, 2025

This bug was introduced in #365.

Cluster handlers were not being claimed during device configuration (after join), only during device initialization (on integration startup), because we did not try to add new entities.

In the future, there needs to be a better way to have entities themselves specify the reporting configuration they require to function. The ZHA device or endpoint object then would figure out the correct binding and reporting config. This would allow entities deriving from the same attribute to all independently be able to specify reporting config and to continue to be reusable. It would also allow prospective entities to be aggregated during device join and for their corresponding attributes/commands to be read. This would eliminate the need for cluster handlers.

Related: home-assistant/core#140880

Copy link
codecov bot commented Mar 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.60%. Comparing base (6d0c6d4) to head (3f4dc64).
Report is 1 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #399      +/-   ##
==========================================
+ Coverage   96.42%   96.60%   +0.17%     
==========================================
  Files          61       61              
  Lines        9661     9662       +1     
==========================================
+ Hits         9316     9334      +18     
+ Misses        345      328      -17     

☔ 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.

@puddly puddly merged commit a1a4da8 into zigpy:dev Mar 20, 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
Development

Successfully merging this pull request may close these issues.

2 participants
0