From f461c9b966b0866016b97d6cb977fc7899cce996 Mon Sep 17 00:00:00 2001 From: Jon Date: Sun, 11 Mar 2018 15:49:31 +0000 Subject: [PATCH] Bug Fix Fix for non-existent device dim Action, which will be the state for existing already defined devices. --- Alexa-Hue Bridge.indigoPlugin/Contents/Info.plist | 2 +- Alexa-Hue Bridge.indigoPlugin/Contents/Server Plugin/plugin.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Alexa-Hue Bridge.indigoPlugin/Contents/Info.plist b/Alexa-Hue Bridge.indigoPlugin/Contents/Info.plist index 48e1526..71fb2e1 100755 --- a/Alexa-Hue Bridge.indigoPlugin/Contents/Info.plist +++ b/Alexa-Hue Bridge.indigoPlugin/Contents/Info.plist @@ -3,7 +3,7 @@ PluginVersion - 3.0.25 + 3.0.26 ServerApiVersion 2.0 IwsApiVersion diff --git a/Alexa-Hue Bridge.indigoPlugin/Contents/Server Plugin/plugin.py b/Alexa-Hue Bridge.indigoPlugin/Contents/Server Plugin/plugin.py index b471916..2156d00 100755 --- a/Alexa-Hue Bridge.indigoPlugin/Contents/Server Plugin/plugin.py +++ b/Alexa-Hue Bridge.indigoPlugin/Contents/Server Plugin/plugin.py @@ -1726,7 +1726,7 @@ def setDeviceBrightness(self, client_name_address, ahbDevId, alexaDeviceNameKey, devId = int(alexaDevice['devId']) dev = indigo.devices[devId] name = dev.name - devDimAction = alexaDevice['devDimAction'] + devDimAction = alexaDevice.get('devDimAction', False) except: self.generalLogger.error(u"Request received from {}: Indigo Device with id {} doesn't exist for Alexa Device \"{}\" - Edit Alexa Hue Bridge \"{}\" and correct error.".format(client_name_address, devId, alexaDeviceName, ahbDev.name)) return