Merge pull request #1240 from juano2310/staging

SSVD-2733 -  Typo fix
This commit is contained in:
Vinay Rao
2016-09-12 18:00:11 -07:00
committed by GitHub

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