Skip to content

Pass through the APS encryption flag on incoming packets - #754

Merged
puddly merged 1 commit into
zigpy:devfrom
puddly:puddly/aps-encryption
Sep 17, 2026
Merged

puddly merged 1 commit into
zigpy:devfrom
puddly:puddly/aps-encryption

Conversation

@puddly

@puddly puddly commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Bellows does not currently pass through any TX options flags for incoming packets. APS encryption (automatically decrypted by the NCP) is useful to know.

Related to zigpy/zigpy#1889.

Copilot AI lite review requested due to automatic review settings September 17, 2026 19:59

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The implementation is focused, consistent with existing mappings, and adequately tested.

Pull request overview

Passes APS encryption state from incoming Ember APS frames into ZigbeePacket.tx_options, enabling encrypted replies.

Changes:

  • Maps APS encryption flags to TransmitOptions.APS_Encryption.
  • Adds parameterized unicast coverage for encrypted and unencrypted packets.
File summaries
File Description
bellows/zigbee/application.py Propagates APS encryption metadata.
tests/test_application.py Tests encryption flag propagation.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@codecov

codecov Bot commented Sep 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.55%. Comparing base (8f9d87b) to head (254e2da).

Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #754   +/-   ##
=======================================
  Coverage   99.55%   99.55%           
=======================================
  Files          64       64           
  Lines        4269     4272    +3     
=======================================
+ Hits         4250     4253    +3     
  Misses         19       19           

☔ View full report in Codecov by Harness.
📢 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.

@puddly
puddly merged commit f4f8de9 into zigpy:dev Sep 17, 2026
12 checks passed
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.

2 participants