Configure gradle to compile devicetypes and smartapps.

This commit is contained in:
Jason Terhune
2016-09-08 10:18:25 -05:00
parent ae3306928b
commit b78bce55b2
3 changed files with 33 additions and 5 deletions

View File

@@ -64,7 +64,7 @@ def meterHandler(evt) {
def lastValue = atomicState.lastValue as double
atomicState.lastValue = meterValue
def dUnit ? evt.unit : "Watts"
def dUnit = evt.unit ?: "Watts"
def aboveThresholdValue = aboveThreshold as int
if (meterValue > aboveThresholdValue) {