Skip to content

Refactor and add hooks for value setters and getters, connection lifecycle and others. - #584

Open
ikalchev wants to merge 14 commits into
devfrom
topic/ikalchev/refactor_hook_api
Open

ikalchev wants to merge 14 commits into
devfrom
topic/ikalchev/refactor_hook_api

Run the legacy callbacks inside one delegate dispatch pipeline

7dc933a
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Dec 2, 2026 in 0s

92.57% (+0.12%) compared to 6e64947

View this Pull Request on Codecov

92.57% (+0.12%) compared to 6e64947

Details

Codecov Report

❌ Patch coverage is 96.42857% with 16 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.57%. Comparing base (6e64947) to head (7dc933a).
⚠️ Report is 4 commits behind head on dev.

Files with missing lines Patch % Lines
pyhap/characteristic.py 93.75% 2 Missing and 4 partials ⚠️
pyhap/camera.py 91.66% 2 Missing and 2 partials ⚠️
pyhap/accessory.py 94.59% 2 Missing ⚠️
pyhap/service.py 96.36% 1 Missing and 1 partial ⚠️
pyhap/camera_multi_tier.py 96.29% 0 Missing and 1 partial ⚠️
pyhap/hap_protocol.py 88.88% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #584      +/-   ##
==========================================
+ Coverage   92.45%   92.57%   +0.12%     
==========================================
  Files          56       61       +5     
  Lines       11347    11842     +495     
  Branches     1457     1520      +63     
==========================================
+ Hits        10491    10963     +472     
- Misses        570      580      +10     
- Partials      286      299      +13     
Files with missing lines Coverage Δ
pyhap/accessory_driver.py 94.07% <ø> (-0.55%) ⬇️
pyhap/camera_stream.py 97.62% <100.00%> (+0.02%) ⬆️
pyhap/camera_webrtc.py 99.12% <100.00%> (+0.05%) ⬆️
pyhap/connection.py 100.00% <100.00%> (ø)
pyhap/context.py 100.00% <100.00%> (ø)
pyhap/delegates.py 100.00% <100.00%> (ø)
pyhap/errors.py 100.00% <100.00%> (ø)
pyhap/hap_handler.py 88.23% <100.00%> (+0.30%) ⬆️
pyhap/hap_server.py 97.72% <100.00%> (+0.05%) ⬆️
pyhap/mdns.py 100.00% <100.00%> (ø)
... and 6 more

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.