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

Align device_tracker discovery between BLE and BT Classic #493

Merged
merged 2 commits into from
Feb 5, 2021

Conversation

PeteBa
Copy link
Contributor

@PeteBa PeteBa commented Feb 3, 2021

Describe the change
Align device_tracker discovery for BT Classic integration. Happy to adjust as needed.

Note: I dont have any BT Classic devices to test this against. I have adapted jest test to validate device_tracker discovery logic.

Checklist
If you changed code:

  • Tests run locally and pass (npm test)
  • Code has correct format (npm run format)

If you added a new integration:

  • Documentation page added in docs/integrations/
  • Page linked in docs/.vuepress/config.js and docs/integrations/README.md

Additional information
Is this PR related to any issues? Do you have anything else to add?
See #488 for details.

@PeteBa PeteBa requested a review from mKeRix as a code owner February 3, 2021 10:53
@codecov
Copy link

codecov bot commented Feb 3, 2021

Codecov Report

Merging #493 (f9e5b2f) into master (4e13bfd) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #493      +/-   ##
==========================================
+ Coverage   91.32%   91.34%   +0.01%     
==========================================
  Files          89       89              
  Lines        2168     2171       +3     
  Branches      327      327              
==========================================
+ Hits         1980     1983       +3     
  Misses        184      184              
  Partials        4        4              
Flag Coverage Δ
unittests 91.34% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...ons/bluetooth-classic/bluetooth-classic.service.ts 97.84% <100.00%> (+0.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e76a123...f9e5b2f. Read the comment docs.

@PeteBa PeteBa force-pushed the classic_device_tracker_discovery branch from 51982b5 to 5c0c860 Compare February 3, 2021 11:07
@PeteBa PeteBa changed the title Extend device_tracker discovery to BT Classic Align device_tracker discovery between BLE and BT Classic Feb 3, 2021
Copy link
Owner

@mKeRix mKeRix left a comment

Choose a reason for hiding this comment

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

Thanks for looking at this - I just requested a minor change for code quality reasons, otherwise this is all good!

@mKeRix mKeRix merged commit 9e1be95 into mKeRix:master Feb 5, 2021
@PeteBa PeteBa deleted the classic_device_tracker_discovery branch February 5, 2021 19:08
github-actions bot pushed a commit that referenced this pull request Feb 13, 2021
## [2.13.1](v2.13.0...v2.13.1) (2021-02-13)

### Bug Fixes

* **bluetooth-classic:** align device_tracker discovery ([#493](#493)) ([9e1be95](9e1be95))
* **bluetooth-classic:** increase default interval ([ce64847](ce64847)), closes [#351](#351)
* **bluetooth-low-energy:** interpret allowlist as strings ([7a442e1](7a442e1)), closes [#534](#534)
* **bluetooth-low-energy:** retry on immediate disconnects ([37000b8](37000b8)), closes [#508](#508)
* **entities:** do not refresh non-locked entities ([7c031d4](7c031d4)), closes [#532](#532)
@github-actions
Copy link

🎉 This PR is included in version 2.13.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants