pybricks.hubs: Make ThisHub importable.
This is convenient for generic hub tests. Its use will not be encouraged in examples and documentation.
@@ -42,6 +42,7 @@ MP_DEFINE_CONST_FUN_OBJ_1(pb_hubs_Hub_reset_reason_obj, pb_hubs_Hub_reset_reason
STATIC const mp_rom_map_elem_t hubs_globals_table[] = {
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_hubs) },
+ { MP_ROM_QSTR(MP_QSTR_ThisHub), MP_ROM_PTR(&pb_type_ThisHub) },
{ MP_ROM_QSTR(PYBRICKS_HUB_CLASS_NAME), MP_ROM_PTR(&pb_type_ThisHub) },
#ifdef PYBRICKS_HUB_CLASS_NAME_ALIAS
{ MP_ROM_QSTR(PYBRICKS_HUB_CLASS_NAME_ALIAS), MP_ROM_PTR(&pb_type_ThisHub) },
