mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-08 18:06:29 +00:00
Fix incorrect match examples for bluetooth (#1448)
This commit is contained in:
parent
e193131183
commit
377ba9ef34
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -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
|
||||
)
|
||||
)
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user