Repository navigation
Conversation
This reverts commit 7547a5e.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #284 +/- ##
==========================================
- Coverage 99.17% 99.17% -0.01%
==========================================
Files 7 7
Lines 973 971 -2
==========================================
- Hits 965 963 -2
Misses 8 8 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🟡 Changes recommended
The revert removes the only test covering APS_Encryption, leaving the changed behavior untested; retain it with the expected USE_NWK_KEY_SECURITY | USE_APS_ACKS flags to catch regressions.
1 open issue
What changed in this PR
This PR reverts APS-encryption transmit-option support in zigpy’s deCONZ adapter as a workaround for suspected Conbee receive stalls.
Changes:
- Always select network-key security, including when callers request APS encryption.
- Remove the test that expected APS encryption requests to select link-key security.
| File | Description |
|---|---|
zigpy_deconz/zigbee/application.py |
Restores unconditional network-key security selection while preserving ACK handling. |
tests/test_send_receive.py |
Removes the test for the reverted APS-encryption behavior. |
Review effort: Balanced
| ) | ||
|
|
||
|
|
||
| async def test_send_packet_source_route(app, tx_packet): # noqa: F811 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This reverts commit 7547a5e.
Conbee adapters don't meaningfully implement APS security: they don't generate unique link keys per device from some sort of seed via HMAC and they can only hold four imported APS link keys. The bot thinks home-assistant/core#188325 might be related and I concur, it looks like RX can get stuck on the Conbee II independently from TX. This probably has something to do with the recent addition of clusters to zigpy that always use encryption, like
KeepAlive.