Commit graph

13 commits

Author SHA1 Message Date
J. Nick Koston
5dbd0dede1
Refactor Bluetooth scanners to avoid the need to pass a callback () 2023-12-13 09:17:48 +01:00
J. Nick Koston
f002a6a732
Refactor all Bluetooth scanners to inherit from BaseHaRemoteScanner () 2023-12-12 21:28:43 +01:00
J. Nick Koston
e890671192
Relocate Bluetooth manager to habluetooth library ()
* Relocate Bluetooth manager to habluetooth library

* Relocate Bluetooth manager to habluetooth library

* Relocate Bluetooth manager to habluetooth library

* fixes

* fix patching time

* fix more tests

* fix more tests

* split

* Bump habluetooth to 0.7.0

changelog: https://github.com/Bluetooth-Devices/habluetooth/compare/v0.6.1...v0.7.0

This is the big change that will move the manager so the HA
PR that will follow this will be a bit larger than the rest of them
since the manager is connected to everything

* fix types

* fix types

* fix types

* fix patch targets

* fix flakey logbook tests (will need another PR)

* mock shutdown

* bump again

* value can be a float now

* Revert "value can be a float now"

This reverts commit b7e7127143.

* float
2023-12-11 15:42:00 -05:00
J. Nick Koston
dd9c22672a
Refactor bluetooth scanners for better seperation of concerns () 2023-12-02 13:20:06 -10:00
J. Nick Koston
d3b4dd226b
Prevent Bluetooth reconnects from blocking shutdown () 2023-11-19 08:22:26 -06:00
J. Nick Koston
2a5ffa9a5b
Fix timestamps for bluetooth scanners that bundle advertisements ()
 added support for raw/bundled advertisements. We should use the
same monotonic time for all advertisements in the bundle if not time
is passed, or calculate the timestamp and pass it if its known
2023-06-14 21:47:00 -04:00
J. Nick Koston
c3043fb0ee
Bump bluetooth deps for bleak 0.20 ()
Co-authored-by: K <z@kwi.li>
2023-03-20 12:06:15 +01:00
epenet
0cf5e9fb4a
Add type hints to integration tests (part 2) ()
* Add type hints to integration tests (part 2)

* typo

* Improve analytics

* Improve automation

* Imrpove bluetooth
2023-02-10 16:05:26 +01:00
Franck Nijhof
5e81d28116
Update black to 23.1.0 () 2023-02-02 18:35:24 +01:00
Marc Mueller
4f87c1f30f
Update pre-commit-config [Py310] () 2023-01-23 09:59:44 +01:00
Aarni Koskela
40d39a15c9
Fix stray string literal in bluetooth test wrapper () 2023-01-19 14:53:43 +01:00
J. Nick Koston
8c70e5aaad
Try the next best adapter after a BLE connection fails ()
* Try the next best adapter after a BLE connection fails

* add cover

* tweak

* tweak

* Update homeassistant/components/bluetooth/wrappers.py

* bump

* small tweak

* tweak logic
2022-12-23 20:48:47 -05:00
J. Nick Koston
070aa714a0
Switch to a different local Bluetooth adapter when one runs out of connection slots () 2022-12-23 08:58:33 -10:00