SSVD-2733 - Typo fix

This commit is contained in:
juano2310
2016-09-12 20:58:36 -04:00
parent 48818cfb06
commit d5329dbde3

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) {