refactor: recommended and required firmware updates (#2012)

This commit is contained in:
James Rich 2025-06-03 19:58:21 -05:00 committed by GitHub
parent 868d705b2d
commit 38982bc37b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 57 additions and 7 deletions

View file

@ -80,6 +80,12 @@ fun FirmwareReleaseEntity.asDeviceVersion(): DeviceVersion {
)
}
fun FirmwareRelease.asDeviceVersion(): DeviceVersion {
return DeviceVersion(
id.substringBeforeLast(".").replace("v", "")
)
}
enum class FirmwareReleaseType {
STABLE,
ALPHA