From 46346c4be6798147b5c95e60cc77be89696a7cf8 Mon Sep 17 00:00:00 2001 From: kw123 Date: Sat, 2 Jun 2018 11:34:17 -0500 Subject: [PATCH] fixed MultiplyBatteryLevel error message added if 'MultiplyBatteryLevel' in self.devicesCopy[sensor].pluginProps and .. to capture missing property --- RFXCOM.indigoPlugin/Contents/Info.plist | 2 +- RFXCOM.indigoPlugin/Contents/Server Plugin/RFXTRX.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/RFXCOM.indigoPlugin/Contents/Info.plist b/RFXCOM.indigoPlugin/Contents/Info.plist index 10bea1e..adf3a74 100755 --- a/RFXCOM.indigoPlugin/Contents/Info.plist +++ b/RFXCOM.indigoPlugin/Contents/Info.plist @@ -3,7 +3,7 @@ PluginVersion - 2.1.12 + 2.1.13 ServerApiVersion 2.0.0 IwsApiVersion diff --git a/RFXCOM.indigoPlugin/Contents/Server Plugin/RFXTRX.py b/RFXCOM.indigoPlugin/Contents/Server Plugin/RFXTRX.py index de241df..a5acda2 100755 --- a/RFXCOM.indigoPlugin/Contents/Server Plugin/RFXTRX.py +++ b/RFXCOM.indigoPlugin/Contents/Server Plugin/RFXTRX.py @@ -1511,7 +1511,7 @@ def showTemp(self, data): if sensor in self.devicesCopy.keys(): self.plugin.debugLog(u"Temp sensor %d in list" % sensor) - if self.devicesCopy[sensor].pluginProps['MultiplyBatteryLevel']: + if 'MultiplyBatteryLevel' in self.devicesCopy[sensor].pluginProps and self.devicesCopy[sensor].pluginProps['MultiplyBatteryLevel']: batteryLevel *= 10 if batteryLevel > 100: batteryLevel = 100