Skip to content

Commit 60d4252

Browse files
committed
definitions: rpc: merge extension id_type_mapping
Merge the extension `id_type_mapping` variable with the upstream definitions, instead of overwriting them. Signed-off-by: Jordan Yates <jordan@embeint.com>
1 parent 4fdf644 commit 60d4252

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • src/infuse_iot/definitions

src/infuse_iot/definitions/rpc.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,8 @@
66
if _extension_module := _loader("rpc_definitions"):
77
_globals = globals()
88
for _name in _extension_module.__all__:
9-
_globals[_name] = getattr(_extension_module, _name)
9+
attr = getattr(_extension_module, _name)
10+
if _name == "id_type_mapping":
11+
_globals[_name].update(attr)
12+
else:
13+
_globals[_name] = attr

0 commit comments

Comments
 (0)