forked from home-assistant/core
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ZHA device diagnostics error for unknown unsupported attributes (h…
…ome-assistant#101239) * Modify test to account for scenario of unknown unsupported attributes * Add error checking for finding unsupported attributes * Change comment to clarify zigpy misses an attribute def This should make it more clear that it's about an unknown attribute (where zigpy doesn't have an attribute definition). * Increase test coverage This increases test coverage by doing the following: - adding the `IasZone` to our test device, so we have a cluster which actually has some attribute definitions - adding not just an unknown unsupported attribute by id, but also by name - adding a known unsupported attribute by id and by name * Fix diagnostics logic
- Loading branch information
1 parent
d654c4b
commit 5d0c894
Showing
2 changed files
with
31 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters