Merge pull request #1221 from jterhune/gradle-compile

Configure gradle to compile devicetypes and smartapps.
This commit is contained in:
Jason Terhune-Wold
2016-09-13 08:30:57 -05:00
committed by GitHub
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) {