-
Notifications
You must be signed in to change notification settings - Fork 41
Consolidate device diagnostics and create a tool to regenerate them #284
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
9e2c905
to
664951c
Compare
Everything works but with a small problem: clusters that modify the state (e.g. double battery percentage) modify it globally, so running the tool keeps doubling them after re-load. We'll need to restore entity state after loading device info, it seems. Fixed with 9f4fe5b. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #284 +/- ##
==========================================
+ Coverage 96.65% 96.67% +0.02%
==========================================
Files 61 61
Lines 9922 9987 +65
==========================================
+ Hits 9590 9655 +65
Misses 332 332 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
97bebb3
to
daf1a76
Compare
I've rebased this PR. I think after the new |
Revert unnecessary change
Dump the node descriptor Ensure the output is stable Ensure the output is stable
daf1a76
to
1469613
Compare
1469613
to
a343304
Compare
a343304
to
28c88c8
Compare
Combines the logic from HA Core, this library, and https://github.com/dmulcahey/zha-device-exporter/ into a single method:
Device.get_diagnostics_json()
.