forked from platypush/platypush
BluetoothService attributes fixes.
BluetoothService IDs should always be in the format `address::uuid` and the name should always be in title format.
This commit is contained in:
parent
6e9263c4e4
commit
9d66b63266
1 changed files with 2 additions and 2 deletions
|
@ -277,8 +277,8 @@ def device_to_entity(device: BLEDevice, data: AdvertisementData) -> BluetoothDev
|
||||||
# Skip entities that we couldn't parse.
|
# Skip entities that we couldn't parse.
|
||||||
continue
|
continue
|
||||||
|
|
||||||
entity.id = f'{parent_entity.id}:{prop}'
|
entity.id = f'{parent_entity.address}::{prop}'
|
||||||
entity.name = prop
|
entity.name = prop.title()
|
||||||
parent_entity.children.append(entity)
|
parent_entity.children.append(entity)
|
||||||
entity.parent = parent_entity
|
entity.parent = parent_entity
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue