Homebridge Hubitat
Please consider donating if you find this integration useful.
", sCLRORG)
}
}
static String dashItem(String inStr, String strVal, newLine=false) { return "${(inStr == sBLANK && !newLine) ? sBLANK : '\n'} - ${strVal}".toString() }
static String textDonateLink() { return 'https://www.paypal.com/donate?hosted_button_id=5GMA6C3RTLXH6' }
static Integer versionStr2Int(String str) { return str ? str.tokenize('-')[0]?.replaceAll("\\.", sBLANK)?.toInteger() : null }
static String versionCleanup(String str) { return str ? str.tokenize('-')[0] : sNULL }
static Boolean codeUpdIsAvail(String inewVer, String icurVer, String type) {
Boolean result; result = false
String latestVer
String newVer, curVer
newVer=inewVer
curVer=icurVer
if (newVer && curVer) {
newVer = versionCleanup(newVer)
curVer = versionCleanup(curVer)
List