Skip to content

Commit

Permalink
Bug Fix
Browse files Browse the repository at this point in the history
Fix for non-existent device dim Action, which will be the state for
existing already defined devices.
  • Loading branch information
Jon authored and Jon committed Mar 11, 2018
1 parent 266cb64 commit f461c9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Alexa-Hue Bridge.indigoPlugin/Contents/Info.plist
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>PluginVersion</key>
<string>3.0.25</string>
<string>3.0.26</string>
<key>ServerApiVersion</key>
<string>2.0</string>
<key>IwsApiVersion</key>
Expand Down
Expand Up @@ -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
Expand Down

0 comments on commit f461c9b

Please sign in to comment.