Skip to content
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

Try harder to avoid missing button presses #336

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bdraco
Copy link
Collaborator

@bdraco bdraco commented Sep 27, 2023

maybe fixes #319

@codecov
Copy link

codecov bot commented Sep 27, 2023

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (c244405) 67.99% compared to head (85f2e58) 68.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #336      +/-   ##
==========================================
+ Coverage   67.99%   68.00%   +0.01%     
==========================================
  Files          71       71              
  Lines        6781     6780       -1     
==========================================
  Hits         4611     4611              
+ Misses       2170     2169       -1     
Files Coverage Δ
aiohomekit/controller/ble/pairing.py 22.40% <0.00%> (+0.02%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bdraco
Copy link
Collaborator Author

bdraco commented Oct 7, 2023

This fixes the missed button presses but now I get duplicates

So if I do

4, 5, 3

4 is broadcast as adv and fired
5 isn't and generates a disconnected event

It connects and reads 4,5,3 so 4 gets fired again

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.

BLE Events might still be read when processing disconnected notifications
1 participant