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

fix: avoid logging connecting and connected since our BLEDevice may be stale #72

Merged
merged 2 commits into from
Dec 2, 2022

Conversation

bdraco
Copy link
Member

@bdraco bdraco commented Dec 2, 2022

Since we can get a new BLEDevice after we call connect, we should not log the adapter as it may be stale.

The logging should happen in HA instead.

…e stale

Since we can get a new BLEDevice after we call connect, we should
not log the adapter as it may be stale.

The logging should happen in HA instead.
@codecov
Copy link

codecov bot commented Dec 2, 2022

Codecov Report

Base: 85.71% // Head: 83.81% // Decreases project coverage by -1.89% ⚠️

Coverage data is based on head (cdb5b11) compared to base (0e90c1c).
Patch coverage: 62.50% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #72      +/-   ##
==========================================
- Coverage   85.71%   83.81%   -1.90%     
==========================================
  Files           2        2              
  Lines         308      309       +1     
  Branches       76       76              
==========================================
- Hits          264      259       -5     
- Misses         30       34       +4     
- Partials       14       16       +2     
Impacted Files Coverage Δ
src/bleak_retry_connector/__init__.py 85.86% <62.50%> (-2.03%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@bdraco bdraco merged commit 10e040c into main Dec 2, 2022
@bdraco bdraco deleted the bad_logging branch December 2, 2022 20:38
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.

1 participant