core/homeassistant/components/bluetooth
J. Nick Koston 6b931b208f
Small cleanups to bluetooth internals (#92045)
* Small cleanups to bluetooth internals

Improve the performance of _async_on_advertisement

Fixes

```
tests/components/bluetooth/test_models.py::test_ble_device_with_proxy_client_out_of_connections_uses_best_available
tests/components/bluetooth/test_models.py::test_ble_device_with_proxy_client_out_of_connections_uses_best_available_macos
  /Users/bdraco/home-assistant/homeassistant/components/bluetooth/wrappers.py:226: FutureWarning: This method will be removed future version, pass the callback to the BleakClient constructor instead.
    self._backend.set_disconnected_callback(

tests/components/bluetooth/test_models.py::test_ble_device_with_proxy_client_out_of_connections_uses_best_available_macos
  /Users/bdraco/home-assistant/tests/components/bluetooth/test_models.py:506: FutureWarning: BLEDevice.metadata is deprecated and will be removed in a future version of Bleak, use AdvertisementData instead
    switchbot_proxy_device_no_connection_slot.metadata["delegate"] = 0

tests/components/bluetooth/test_models.py::test_ble_device_with_proxy_client_out_of_connections_uses_best_available_macos
  /Users/bdraco/home-assistant/tests/components/bluetooth/test_models.py:521: FutureWarning: BLEDevice.metadata is deprecated and will be removed in a future version of Bleak, use AdvertisementData instead
    switchbot_proxy_device_has_connection_slot.metadata["delegate"] = 0

tests/components/bluetooth/test_models.py::test_ble_device_with_proxy_client_out_of_connections_uses_best_available_macos
  /Users/bdraco/home-assistant/tests/components/bluetooth/test_models.py:535: FutureWarning: BLEDevice.metadata is deprecated and will be removed in a future version of Bleak, use AdvertisementData instead
    switchbot_device.metadata["delegate"] = 0

```

* put back kwargs
2023-04-26 11:16:34 +02:00
..
__init__.py Fix lingering timers in bluetooth (part 1) (#91673) 2023-04-20 18:07:38 +02:00
active_update_coordinator.py Fix lingering timers in bluetooth (part 2) (#91674) 2023-04-20 11:04:07 +02:00
active_update_processor.py Fix lingering timers in bluetooth (part 2) (#91674) 2023-04-20 11:04:07 +02:00
advertisement_tracker.py
api.py
base_scanner.py Small cleanups to bluetooth internals (#92045) 2023-04-26 11:16:34 +02:00
config_flow.py Give users a hint that their bluetooth adapter has been ignored (#87727) 2023-02-09 16:41:53 -06:00
const.py
diagnostics.py
manager.py Adjust async_track_time_interval name argument (#90838) 2023-04-05 10:58:02 -04:00
manifest.json Bump dbus-fast to 1.85.0 (#91784) 2023-04-21 08:26:44 +02:00
match.py Add slots to dataclasses in default_config (#91410) 2023-04-14 14:22:39 -04:00
models.py Add slots to dataclasses in default_config (#91410) 2023-04-14 14:22:39 -04:00
passive_update_coordinator.py
passive_update_processor.py Add slots to dataclasses in default_config (#91410) 2023-04-14 14:22:39 -04:00
scanner.py Use bluetooth address instead of uuid on MacOS (#89926) 2023-03-20 12:07:41 +01:00
storage.py
strings.json Give users a hint that their bluetooth adapter has been ignored (#87727) 2023-02-09 16:41:53 -06:00
update_coordinator.py
usage.py Fix missing bluetooth client wrapper in bleak_retry_connector (#90885) 2023-04-06 10:33:00 +02:00
util.py
wrappers.py Update bluetooth debug logging for newer bleak (#91643) 2023-04-19 11:26:02 -04:00