From 377ba9ef342e90047d08fc74e0ea1b47c282e9c8 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 26 Aug 2022 12:43:13 -0500 Subject: [PATCH] Fix incorrect match examples for bluetooth (#1448) --- docs/creating_integration_manifest.md | 4 ++-- docs/network_discovery.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/creating_integration_manifest.md b/docs/creating_integration_manifest.md index b9a9e247..e0fd9f54 100644 --- a/docs/creating_integration_manifest.md +++ b/docs/creating_integration_manifest.md @@ -182,7 +182,7 @@ The following example will match service data with a 128 bit uuid used for Switc { "bluetooth": [ { - "service_uuid": ["cba20d00-224d-11e6-9fb8-0002a5d5c51b"] + "service_uuid": "cba20d00-224d-11e6-9fb8-0002a5d5c51b" } ] } @@ -194,7 +194,7 @@ If you want to match service data with a 16 bit uuid, you will have to convert i { "bluetooth": [ { - "service_data_uuid": ["0000fd3d-0000-1000-8000-00805f9b34fb"] + "service_data_uuid": "0000fd3d-0000-1000-8000-00805f9b34fb" } ] } diff --git a/docs/network_discovery.md b/docs/network_discovery.md index 1bbaa555..39579a69 100644 --- a/docs/network_discovery.md +++ b/docs/network_discovery.md @@ -47,7 +47,7 @@ def _async_discovered_device(service_info: bluetooth.BluetoothServiceInfoBleak, entry.async_on_unload( bluetooth.async_register_callback( - hass, _async_discovered_device, {"service_uuids": {"cba20d00-224d-11e6-9fb8-0002a5d5c51b"}, "connectable": False}, bluetooth.BluetoothScanningMode.ACTIVE + hass, _async_discovered_device, {"service_uuid": "cba20d00-224d-11e6-9fb8-0002a5d5c51b", "connectable": False}, bluetooth.BluetoothScanningMode.ACTIVE ) ) ```