Skip to content

Commit

Permalink
Merge pull request SmartThingsCommunity#3296 from SmartThingsCommunit…
Browse files Browse the repository at this point in the history
…y/staging

Rolling down staging to master
  • Loading branch information
workingmonk authored Jul 24, 2018
2 parents 7a6f190 + f49f6c8 commit c140181
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion devicetypes/smartthings/zigbee-lock.src/zigbee-lock.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ private def parseCommandResponse(String description) {
return null
}
codeName = getCodeName(lockCodes, codeID)
responseMap.data = [ codeId: codeID, usedCode: codeID, codeName: codeName, method: "keypad" ]
responseMap.data = [ codeId: codeID as String, usedCode: codeID, codeName: codeName, method: "keypad" ]
} else if (eventSource == 1) {
responseMap.data = [ method: "command" ]
} else if (eventSource == 2) {
Expand Down
8 changes: 4 additions & 4 deletions devicetypes/smartthings/zwave-lock.src/zwave-lock.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ private def handleAccessAlarmReport(cmd) {
codeID = readCodeSlotId(cmd)
codeName = getCodeName(lockCodes, codeID)
map.descriptionText = "Locked by \"$codeName\""
map.data = [ codeId: codeID, usedCode: codeID, codeName: codeName, method: "keypad" ]
map.data = [ codeId: codeID as String, usedCode: codeID, codeName: codeName, method: "keypad" ]
} else {
// locked by pressing the Schlage button
map.descriptionText = "Locked manually"
Expand All @@ -449,7 +449,7 @@ private def handleAccessAlarmReport(cmd) {
codeID = readCodeSlotId(cmd)
codeName = getCodeName(lockCodes, codeID)
map.descriptionText = "Unlocked by \"$codeName\""
map.data = [ codeId: codeID, usedCode: codeID, codeName: codeName, method: "keypad" ]
map.data = [ codeId: codeID as String, usedCode: codeID, codeName: codeName, method: "keypad" ]
}
break
case 7:
Expand Down Expand Up @@ -643,7 +643,7 @@ private def handleAlarmReportUsingAlarmType(cmd) {
codeID = readCodeSlotId(cmd)
codeName = getCodeName(lockCodes, codeID)
map.descriptionText = "Unlocked by \"$codeName\""
map.data = [ codeId: codeID, usedCode: codeID, codeName: codeName, method: "keypad" ]
map.data = [ codeId: codeID as String, usedCode: codeID, codeName: codeName, method: "keypad" ]
}
break
case 18: // Locked with keypad
Expand All @@ -656,7 +656,7 @@ private def handleAlarmReportUsingAlarmType(cmd) {
} else {
codeName = getCodeName(lockCodes, codeID)
map.descriptionText = "Locked by \"$codeName\""
map.data = [ codeId: codeID, usedCode: codeID, codeName: codeName, method: "keypad" ]
map.data = [ codeId: codeID as String, usedCode: codeID, codeName: codeName, method: "keypad" ]
}
break
case 21: // Manually locked
Expand Down

0 comments on commit c140181

Please sign in to comment.