From b56887647445ce06dddaec2e4c5a7277fa2fa7b7 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 19 Mar 2023 12:54:09 +0100 Subject: [PATCH] Use a service's UUID as a name instead of Unknown if the service is unknown. --- platypush/plugins/bluetooth/_ble/_mappers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/plugins/bluetooth/_ble/_mappers.py b/platypush/plugins/bluetooth/_ble/_mappers.py index 7d413b61..e01ef65b 100644 --- a/platypush/plugins/bluetooth/_ble/_mappers.py +++ b/platypush/plugins/bluetooth/_ble/_mappers.py @@ -216,7 +216,7 @@ def _parse_services(device: BLEDevice) -> List[BluetoothService]: BluetoothService( id=f'{device.address}:{uuid}', uuid=uuid, - name=str(srv_cls), + name=f'[{uuid}]' if srv_cls == ServiceClass.UNKNOWN else str(srv_cls), protocol=Protocol.L2CAP, is_ble=True, )