Bluetooth-Devices / bthome-ble

Parser for BTHome BLE devices
https://bthome.io/
MIT License
69 stars 14 forks source link

feat: V2 update [WIP] #13

Closed Ernst79 closed 1 year ago

Ernst79 commented 1 year ago

This PR will add support for the new BTHome V2 format

codecov[bot] commented 1 year ago

Codecov Report

Base: 68.13% // Head: 75.39% // Increases project coverage by +7.25% :tada:

Coverage data is based on head (e8d2646) compared to base (8ae802a). Patch coverage: 77.20% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #13 +/- ## ========================================== + Coverage 68.13% 75.39% +7.25% ========================================== Files 5 6 +1 Lines 295 443 +148 Branches 45 65 +20 ========================================== + Hits 201 334 +133 - Misses 73 89 +16 + Partials 21 20 -1 ``` | [Impacted Files](https://codecov.io/gh/Bluetooth-Devices/bthome-ble/pull/13?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | Coverage Δ | | |---|---|---| | [src/bthome\_ble/bthome\_v1\_encryption.py](https://codecov.io/gh/Bluetooth-Devices/bthome-ble/pull/13/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-c3JjL2J0aG9tZV9ibGUvYnRob21lX3YxX2VuY3J5cHRpb24ucHk=) | `61.64% <ø> (ø)` | | | [src/bthome\_ble/bthome\_v2\_encryption.py](https://codecov.io/gh/Bluetooth-Devices/bthome-ble/pull/13/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-c3JjL2J0aG9tZV9ibGUvYnRob21lX3YyX2VuY3J5cHRpb24ucHk=) | `61.33% <61.33%> (ø)` | | | [src/bthome\_ble/parser.py](https://codecov.io/gh/Bluetooth-Devices/bthome-ble/pull/13/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-c3JjL2J0aG9tZV9ibGUvcGFyc2VyLnB5) | `80.81% <85.07%> (+13.48%)` | :arrow_up: | | [src/bthome\_ble/\_\_init\_\_.py](https://codecov.io/gh/Bluetooth-Devices/bthome-ble/pull/13/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-c3JjL2J0aG9tZV9ibGUvX19pbml0X18ucHk=) | `100.00% <100.00%> (ø)` | | | [src/bthome\_ble/const.py](https://codecov.io/gh/Bluetooth-Devices/bthome-ble/pull/13/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-c3JjL2J0aG9tZV9ibGUvY29uc3QucHk=) | `100.00% <100.00%> (ø)` | | | [src/bthome\_ble/event.py](https://codecov.io/gh/Bluetooth-Devices/bthome-ble/pull/13/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-c3JjL2J0aG9tZV9ibGUvZXZlbnQucHk=) | `100.00% <100.00%> (ø)` | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None)

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