Skip to content

Commit

Permalink
using the library converter and returning empty map
Browse files Browse the repository at this point in the history
  • Loading branch information
workingmonk committed Aug 27, 2015
1 parent b10308f commit 25ce609
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def getPowerDescription(descMap) {
if (descMap.cluster == "0B04") {
if (descMap.attrId == "050b") {
if(descMap.value!="ffff")
powerValue = convertHexToInt(descMap.value)
powerValue = zigbee.convertHexToInt(descMap.value)
}
}
else if (descMap.clusterId == "0B04") {
Expand All @@ -149,6 +149,6 @@ def getPowerDescription(descMap) {
return [type: "power", value : powerValue]
}
else {
return "false"
return [:]
}
}

0 comments on commit 25ce609

Please sign in to comment.