mirror of
https://github.com/google/bumble.git
synced 2026-05-09 04:08:02 +00:00
wip (+4 squashed commits)
Squashed commits: [d29a350] wip [7f541ed] wip [1e2902e] basic working version [14b497a] wip
This commit is contained in:
@@ -1641,9 +1641,11 @@ class HCI_Object:
|
||||
# Get the value for the field
|
||||
value = hci_object[key]
|
||||
|
||||
# Map the value if needed
|
||||
# Check if there's a matching mapper passed
|
||||
if value_mappers:
|
||||
value_mapper = value_mappers.get(key, value_mapper)
|
||||
|
||||
# Map the value if we have a mapper
|
||||
if value_mapper is not None:
|
||||
value = value_mapper(value)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user