J. Nick Koston
6ae79524bd
Add support for bleak 0.21 ( #97212 )
2023-07-25 19:30:54 +02:00
J. Nick Koston
17d1c0733d
Remove outdated HAOS check from bluetooth ( #93809 )
2023-05-30 19:41:51 +02:00
J. Nick Koston
90e92aa9d8
Add test case for matching the shelly button ( #91642 )
2023-04-19 11:26:21 -04:00
J. Nick Koston
c3043fb0ee
Bump bluetooth deps for bleak 0.20 ( #89925 )
...
Co-authored-by: K <z@kwi.li>
2023-03-20 12:06:15 +01:00
Franck Nijhof
6891eb7ed1
Add support for snapshot testing ( #88323 )
...
* Add support for snapshot testing
* Use snapshots in Elgato diagnostics test
* Use snapshots in Elgato sensor test
* Fix flake8 warning
* Slightly improve serialized output
* Remove snapshot naming in elgato sensor tests
* Improve snapshoting of via_device_id in device registry item
* Update pylint typehints plugin for snapshot fixture typing
* Use snapshots in Elgato configflow test
* Use snapshots in Bluetooth repair issue tests
2023-02-17 16:35:55 -05:00
J. Nick Koston
34e2751f14
Retrigger Bluetooth discovery when calling async_rediscover_address ( #87884 )
...
* Retrigger Bluetooth discovery when calling async_rediscover_address
* Retrigger Bluetooth discovery when calling async_rediscover_address
* tweak
2023-02-11 16:59:51 +01:00
epenet
0cf5e9fb4a
Add type hints to integration tests (part 2) ( #87789 )
...
* Add type hints to integration tests (part 2)
* typo
* Improve analytics
* Improve automation
* Imrpove bluetooth
2023-02-10 16:05:26 +01:00
epenet
807c69f621
Add type hints to integration tests (b-c) ( #87698 )
2023-02-08 18:08:43 +01:00
Franck Nijhof
24fdd588fd
Code styling tweaks to the tests - Part 1 ( #86192 )
2023-01-20 13:52:46 +01:00
Erik Montnemery
c4afc33fc5
Add abc.ABC to classes with abstract methods ( #83546 )
2022-12-08 17:50:36 +01:00
J. Nick Koston
a7caa038be
Accept advertisements from alternate scanners when a scanner stops scanning ( #82448 )
2022-11-21 21:23:07 -05:00
J. Nick Koston
7801cd96de
Split bluetooth models into base_scanner and wrappers ( #82291 )
2022-11-20 08:44:28 -06:00
J. Nick Koston
47c66dbed4
Offload platform specific bluetooth code to bluetooth-adapters ( #82196 )
...
* Offload platform specific bluetooth code to bluetooth-adapters
* adjust
* fix some more patch targets
* more test fixes
* almost there
* may not be setup yet
* more fixes
* fixes
* fix test
* fix merge
2022-11-17 14:34:19 -05:00
J. Nick Koston
78180b2ad8
Fix bluetooth adapters with missing firmware patch files not being discovered ( #81926 )
2022-11-10 14:14:37 -06:00
Joakim Plate
9eb4faf037
Fire bluetooth listener for all matching devices ( #80440 )
...
* Fire listener for all matching devices
* Add test case for seen device
* Avoid looping all data if we have address match
* Initialize to empty list
2022-10-16 21:49:12 +02:00
J. Nick Koston
d12cbab6c4
Bump bleak to 0.19.0 ( #80349 )
2022-10-15 13:57:23 -04:00
J. Nick Koston
0c76e3a97e
Automatically determine the advertising interval for bluetooth devices ( #79669 )
2022-10-14 14:39:18 -04:00
J. Nick Koston
2768b2445a
Remove call to deprecated bleak register_detection_callback ( #79558 )
2022-10-03 21:15:09 -04:00
J. Nick Koston
12856dea05
Create an issue when Bluetooth is active on old HAOS ( #78430 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-09-19 21:02:13 -04:00
J. Nick Koston
9655f30146
Handle Modalias missing from the bluetooth adapter details on older BlueZ ( #78715 )
2022-09-18 21:09:45 -04:00
J. Nick Koston
d4181aa911
Fix bluetooth callback matchers when only matching on connectable ( #78687 )
2022-09-18 10:22:54 -05:00
J. Nick Koston
18eef5da1f
Restore history from bluetooth stack at startup ( #78612 )
2022-09-17 16:58:19 -05:00
J. Nick Koston
98dd84f535
Ensure bluetooth callbacks are only fired when advertisement data changes ( #78609 )
2022-09-17 10:26:02 +02:00
Alex Thompson
45b69618d3
Add iBeacon start byte to allowed Apple Bluetooth advertisements ( #78088 )
2022-09-08 18:21:58 -05:00
J. Nick Koston
804e4ab989
Prefilter noisy apple devices from bluetooth ( #77808 )
2022-09-04 20:57:40 -04:00
J. Nick Koston
40e8979951
Add bluetooth api to get the count of connectable and non-connectable scanners ( #77427 )
2022-08-29 10:21:30 -04:00
J. Nick Koston
61d5ed1dcf
Index bluetooth matchers to resolve performance concerns with many adapters/remotes ( #77372 )
2022-08-26 23:07:51 -04:00
J. Nick Koston
109d5c7084
Fix bluetooth discovery when advertisement format changes ( #77286 )
2022-08-24 17:36:21 -05:00
J. Nick Koston
d1486d04d9
Add support for bleak passive scanning on linux ( #75542 )
2022-08-24 12:17:28 -05:00
J. Nick Koston
c76dec138a
Discover new bluetooth adapters when they are plugged in ( #77006 )
2022-08-22 15:45:08 -10:00
J. Nick Koston
3938015c93
Add support for scanners that do not provide connectable devices ( #77132 )
2022-08-22 14:02:26 -04:00
J. Nick Koston
cd59d3ab81
Add support for multiple Bluetooth adapters ( #76963 )
2022-08-18 21:41:07 -04:00
J. Nick Koston
3bcc274dfa
Rework bluetooth to support scans from multiple sources ( #76900 )
2022-08-17 10:51:56 -10:00
J. Nick Koston
6f3cdb6db1
Reorganize bluetooth integration to prepare for remote and multi-adapter support ( #76883 )
2022-08-16 14:52:53 -10:00
J. Nick Koston
4890785299
Fix bluetooth callback registration not surviving a reload ( #76817 )
2022-08-15 10:19:37 -10:00
J. Nick Koston
1fe44d0997
Ensure bluetooth recovers if Dbus gets restarted ( #76249 )
2022-08-07 11:03:56 -04:00
Joakim Plate
cdde4f9925
Add bluetooth API to allow rediscovery of address ( #76005 )
...
* Add API to allow rediscovery of domains
* Switch to clearing per device
* Drop unneded change
2022-08-05 14:49:34 +02:00
J. Nick Koston
5d7cef6416
Fix race in bluetooth async_process_advertisements ( #76176 )
2022-08-04 17:58:15 +02:00
J. Nick Koston
bf931f1225
Handle additional bluetooth start exceptions ( #76096 )
2022-08-02 13:46:43 -10:00
J. Nick Koston
80a9659524
Update to bleak 0.15 ( #75941 )
2022-07-29 17:53:33 -07:00
J. Nick Koston
702cef3fc7
Add startup timeout to bluetooth ( #75848 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-07-28 11:14:13 -10:00
Jc2k
10356b9379
Fix Xiaomi BLE not detecting encryption for some devices ( #75851 )
2022-07-28 19:10:37 +01:00
J. Nick Koston
a813cf987b
Add bluetooth options flow to pick the adapter ( #75701 )
2022-07-25 16:52:35 +02:00
J. Nick Koston
22ca28b93d
Ensure bluetooth can be reloaded when hot plugging a bluetooth adapter ( #75699 )
2022-07-24 19:23:23 -05:00
J. Nick Koston
bbb9443b00
Fix bluetooth integration matching with service_data_uuids and service_uuids ( #75687 )
...
* Fix bluetooth integration with service_data and service_uuids
We would only dispatch a new flow when the address was seen for
the first time or the manufacturer_data appeared in a followup
advertisement. Its also possible for the service_data and
service_uuids to appear in a followup advertisement so we
need to track these as well
* improve logging to avoid overly large messages
* improve logging to avoid overly large messages
* adjust
* adjsut
* split
* coverage
* coverage
* coverage
* coverage
* fix matcher
* more coverage
* more coverage
* more coverage
* revert switchbot changes and move to seperate PR
2022-07-24 16:39:53 -05:00
J. Nick Koston
240bbfa080
Retry later if bluetooth fails to start ( #75647 )
2022-07-23 12:00:34 -05:00
J. Nick Koston
326e05dcf1
Fix async_get_scanner to return the correct bluetooth scanner ( #75637 )
2022-07-22 18:12:08 -05:00
J. Nick Koston
38bccadaa6
Add support for setting up and removing bluetooth in the UI ( #75600 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-07-22 13:19:53 -05:00
J. Nick Koston
90ca3fe350
Improve availability tracking and coordinator setup in bluetooth ( #75582 )
2022-07-21 19:16:45 -05:00
J. Nick Koston
41e4b38c3a
Add device and advertisement to BluetoothServiceInfoBleak ( #75381 )
2022-07-18 17:58:08 -05:00