forked from platypush/platypush
Use a service's UUID as a name instead of Unknown if the service is unknown.
This commit is contained in:
parent
aa04741daa
commit
b568876474
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue