From 91a6a13b659cea179b01a67d94d81f7e0ad7a28b Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 20 Jan 2023 09:29:52 -1000 Subject: [PATCH] Rephrase ActiveBluetoothCoordinator docs (#1640) --- docs/core/bluetooth/bluetooth_fetching_data.md | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/docs/core/bluetooth/bluetooth_fetching_data.md b/docs/core/bluetooth/bluetooth_fetching_data.md index 2b639bbf..64dcb89a 100644 --- a/docs/core/bluetooth/bluetooth_fetching_data.md +++ b/docs/core/bluetooth/bluetooth_fetching_data.md @@ -310,14 +310,9 @@ class ExamplePassiveBluetoothDataUpdateCoordinator( ### ActiveBluetoothCoordinator -Below is an example of an `ActiveBluetoothDataUpdateCoordinator`. Incoming -data is received via `_async_handle_bluetooth_event` and processed by the integration's -library. +Below is an example of an `ActiveBluetoothDataUpdateCoordinator`. Incoming data is received via `_async_handle_bluetooth_event` and processed by the integration's library. -The `_needs_poll` function is called each time there is the Bluetooth advertisement changes to -determine if an active connection to the device is needed to fetch additional data. - -If the `_needs_poll` function returns `True`, `_async_update` will be called. +The method passed to `needs_poll_method` is called each time the Bluetooth advertisement changes to determine if the method passed to `poll_method` should be called to make an active connection to the device to obtain additional data. ```python import logging