It sucks to workaround this on uPy side, but upgrading not upgradable embedded systems sucks even more.