Skip to content

Fix device diagnostics not regenerating with changed quirks #455

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

Draft
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

TheJulianJES
Copy link
Contributor

Proposed change

This fixes an issue where regenerating device diagnostics or importing legacy device diagnostics might not work if cluster_details still contains clusters that are no longer present on the Device object.

Additional information

This can be caused when a quirk no longer exposes a certain cluster.
Noticed here: zigpy/zha-device-handlers#3232 (comment)

Draft until this is ready, as I've also had the same issue not just when regenerating diagnostics, but also when importing legacy diagnostics, though I just removed the clusters from the JSON for now.
I'll come back to this later.

Copy link

codecov bot commented May 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.91%. Comparing base (89958f2) to head (0431943).

Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #455   +/-   ##
=======================================
  Coverage   96.91%   96.91%           
=======================================
  Files          63       63           
  Lines       10355    10355           
=======================================
  Hits        10036    10036           
  Misses        319      319           

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

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.

1 participant