311 "{2}" |
311 "{2}" |
312 "</table>" |
312 "</table>" |
313 ).format( |
313 ).format( |
314 currentVersionStr, |
314 currentVersionStr, |
315 tag, |
315 tag, |
316 self.tr("<tr><td>Variant:</td><td>{0}</td></tr>").format( |
316 ( |
317 self._deviceData["mpy_variant"] |
317 self.tr("<tr><td>Variant:</td><td>{0}</td></tr>").format( |
318 ) |
318 self._deviceData["mpy_variant"] |
319 if self._deviceData["mpy_variant"] |
319 ) |
320 else "", |
320 if self._deviceData["mpy_variant"] |
|
321 else "" |
|
322 ), |
321 ) |
323 ) |
322 if self._deviceData["mpy_variant"] in ["Pimoroni Pico"] and not bool( |
324 if self._deviceData["mpy_variant"] in ["Pimoroni Pico"] and not bool( |
323 self._deviceData["mpy_variant_version"] |
325 self._deviceData["mpy_variant_version"] |
324 ): |
326 ): |
325 # cannot derive update info |
327 # cannot derive update info |