Use a service's UUID as a name instead of Unknown if the service is unknown.

This commit is contained in:
Fabio Manganiello 2023-03-19 12:54:09 +01:00
parent aa04741daa
commit b568876474
Signed by: blacklight
GPG Key ID: D90FBA7F76362774
1 changed files with 1 additions and 1 deletions

View File

@ -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,
)