Skip to content

Commit

Permalink
DVCSMP-4224 Change codeId value type from integer to string to match …
Browse files Browse the repository at this point in the history
  • Loading branch information
dkirker authored and workingmonk committed Jul 20, 2018
1 parent 65f14f5 commit f49f6c8
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 f49f6c8

Please sign in to comment.