Skip to content

Commit

Permalink
Bug Fix
Browse files Browse the repository at this point in the history
Bug fix to correct logic error resolving port address.
Ensure that Discovery logging is defaulted to on.
Revised icon.
  • Loading branch information
Jon authored and Jon committed Nov 23, 2017
1 parent 9654dfb commit 4780af5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Alexa-Hue Bridge.indigoPlugin/Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>PluginVersion</key>
<string>3.0.18</string>
<string>3.0.19</string>
<key>ServerApiVersion</key>
<string>2.0</string>
<key>IwsApiVersion</key>
Expand Down
Binary file modified Alexa-Hue Bridge.indigoPlugin/Contents/Resources/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<Field id="separator-2" type="separator" visibleBindingValue="true"/>

<Field type="checkbox" id="showDiscoveryInEventLog" default="true" alwaysUseInDialogHeightCalc="true">
<Field id="showDiscoveryInEventLog" type="checkbox" default="true" alwaysUseInDialogHeightCalc="true">
<Label>Log Discovery:</Label>
<Description>Log Alexa discovery requests in Event Log.</Description>
</Field>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ def getPrefsConfigUiValues(self):
else:
prefsConfigUiValues["networkCheckURL"] = NETWORK_AVAILABLE_CHECK_REMOTE_SERVER

if "showDiscoveryInEventLog" not in prefsConfigUiValues:
prefsConfigUiValues["showDiscoveryInEventLog"] = True

return prefsConfigUiValues

def validatePrefsConfigUi(self, valuesDict):
Expand Down Expand Up @@ -421,7 +424,7 @@ def deviceStartComm(self, ahbDev):
self.globals['portList'].append(port)

try:
if int(ahbDev.address) != int(port):
if ahbDev.address is None or ahbDev.address == '' or int(ahbDev.address) != int(port):
port_changed = True
except:
self.generalLogger.error("Alexa-Hue Bridge '{}' at address {} either has an invalid address or invalid port {} - specify in Device Config".format(ahbDev.name, ahbDev.address, port))
Expand Down

0 comments on commit 4780af5

Please sign in to comment.