--- a/src/eric7/MicroPython/MicroPythonWidget.py Fri Mar 21 18:12:17 2025 +0100 +++ b/src/eric7/MicroPython/MicroPythonWidget.py Sun Mar 23 14:55:14 2025 +0100 @@ -382,17 +382,7 @@ @return flag indicating a micro:bit device @rtype bool """ - if ( - self.__device - and ( - "micro:bit" in self.__device.deviceName() - or "Calliope" in self.__device.deviceName() - ) - and not self.__device.hasCircuitPython() - ): - return True - - return False + return self.__device and self.__device.isMicrobit() @pyqtSlot(int) def on_deviceTypeComboBox_activated(self, index):