From 2a04c9d07a3f68fb14f8857c5f76d45be6c67323 Mon Sep 17 00:00:00 2001 From: Joakim Plate Date: Tue, 2 Aug 2022 22:38:21 +0200 Subject: [PATCH 1/2] Add mention of async_rediscover_address --- docs/network_discovery.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/network_discovery.md b/docs/network_discovery.md index 6c7617cb..6ec1186e 100644 --- a/docs/network_discovery.md +++ b/docs/network_discovery.md @@ -142,6 +142,17 @@ from homeassistant.components import bluetooth service_infos = bluetooth.async_discovered_service_info(hass) ``` +### Triggering rediscovery of devices + +When an configuration entry or device is removed from home assistant, trigger rediscovery of it's address to make sure they are available to be set-up without restarting home assistant. You can make use of the bluetooth connection property of the device registry, if your integrations manages multiple devices per configuration entry. + +```python + +from homeassistant.components import bluetooth + +bluetooth.async_rediscover_address(hass, "44:44:33:11:23:42") +``` + ### Waiting for a specific advertisement To wait for a specific advertisement, call the `bluetooth.async_process_advertisements` API. From 6a64391c9c2e126f03fb0d1ad178ffc18d3aedf6 Mon Sep 17 00:00:00 2001 From: Joakim Plate Date: Wed, 3 Aug 2022 00:49:17 +0200 Subject: [PATCH 2/2] Update docs/network_discovery.md Co-authored-by: J. Nick Koston --- docs/network_discovery.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/network_discovery.md b/docs/network_discovery.md index 6ec1186e..a820f25e 100644 --- a/docs/network_discovery.md +++ b/docs/network_discovery.md @@ -144,7 +144,7 @@ service_infos = bluetooth.async_discovered_service_info(hass) ### Triggering rediscovery of devices -When an configuration entry or device is removed from home assistant, trigger rediscovery of it's address to make sure they are available to be set-up without restarting home assistant. You can make use of the bluetooth connection property of the device registry, if your integrations manages multiple devices per configuration entry. +When a configuration entry or device is removed from Home Assistant, trigger rediscovery of its address to make sure they are available to be set up without restarting Home Assistant. You can make use of the Bluetooth connection property of the device registry if your integration manages multiple devices per configuration entry. ```python