474 @param serialNumber serial number of the board (defaults to "") |
474 @param serialNumber serial number of the board (defaults to "") |
475 @type str (optional) |
475 @type str (optional) |
476 @return instantiated device interface |
476 @return instantiated device interface |
477 @rtype BaseDevice |
477 @rtype BaseDevice |
478 """ |
478 """ |
479 |
|
480 with contextlib.suppress(KeyError): |
479 with contextlib.suppress(KeyError): |
481 mod = importlib.import_module( |
480 mod = importlib.import_module( |
482 SupportedBoards[deviceType]["module"], __package__ |
481 SupportedBoards[deviceType]["module"], __package__ |
483 ) |
482 ) |
484 if mod: |
483 if mod: |