* 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 |
||
---|---|---|
.. | ||
fixtures | ||
snapshots | ||
__init__.py | ||
conftest.py | ||
test_active_update_coordinator.py | ||
test_active_update_processor.py | ||
test_advertisement_tracker.py | ||
test_api.py | ||
test_base_scanner.py | ||
test_config_flow.py | ||
test_diagnostics.py | ||
test_init.py | ||
test_manager.py | ||
test_models.py | ||
test_passive_update_coordinator.py | ||
test_passive_update_processor.py | ||
test_scanner.py | ||
test_usage.py | ||
test_wrappers.py |