Skip to content

Commit

Permalink
Minor message display bug fixes
Browse files Browse the repository at this point in the history
Minor message display bug fixes
  • Loading branch information
autolog committed Sep 26, 2019
1 parent 3166ef5 commit 28314e2
Show file tree
Hide file tree
Showing 3 changed files with 4 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.34</string>
<string>3.0.35</string>
<key>ServerApiVersion</key>
<string>2.0</string>
<key>IwsApiVersion</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,9 @@ def run(self):
# This is the exception thrown when someone else has bound to the UPNP port, so write some errors and
# stop the thread (which really isn't needed, but it logs a nice stop debug message).
if e.errno == errno.EADDRINUSE:

PLUGIN.responderLogger.error(u"'{}' Responder startup failed because another app or plugin is using the UPNP port.".format(indigo.devices[self.ahbDevId].name))
PLUGIN.responderLogger.error(u"Open a terminal window and type 'sudo lsof -i :{}}' to see a list of processes that have bound to that port and quit those applications.".format(UPNP_PORT))
PLUGIN.responderLogger.error(u"Open a terminal window and type 'sudo lsof -i :{}' to see a list of processes that have bound to that port and quit those applications.".format(UPNP_PORT))
self.stop()
elif e.errno == errno.EADDRNOTAVAIL:
PLUGIN.responderLogger.error(u"'{}' Responder startup failed because host address is not available.".format(indigo.devices[self.ahbDevId].name))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ def retrievePublishedDevices(self, valuesDict, ahbDevId, infoMsg, convertVersion
elif numberPublished == 1:
numberPublishedUI = 'one Alexa Device'
else:
numberPublishedUI = str("u{} Alexa Devices".format(numberPublished))
numberPublishedUI = u"{} Alexa Devices".format(numberPublished)

if numberPublished <= DEVICE_LIMIT:
self.generalLogger.info(u"'{}' has {} published".format(self.globals['alexaHueBridge'][ahbDevId]['hubName'], numberPublishedUI))
Expand Down

0 comments on commit 28314e2

Please sign in to comment.