-
Notifications
You must be signed in to change notification settings - Fork 23
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
Consolidate device diagnostics and create a tool to regenerate them #284
base: dev
Are you sure you want to change the base?
Conversation
Revert unnecessary change
Dump the node descriptor Ensure the output is stable Ensure the output is stable
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.33% 96.35% +0.02%
==========================================
Files 61 61
Lines 9388 9448 +60
==========================================
+ Hits 9044 9104 +60
Misses 344 344 ☔ View full report in Codecov by Sentry. |
Combines the logic from HA Core, this library, and https://github.com/dmulcahey/zha-device-exporter/ into a single method:
Device.get_diagnostics_json()
.