Skip to content

Commit

Permalink
Include more information when checking for new firmware
Browse files Browse the repository at this point in the history
This allows for phased releases.

This closes #188
  • Loading branch information
AdamaTheHutt committed May 9, 2019
1 parent 9131af1 commit 9b976fa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions upgrade/upgrade/UpgradeManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,12 +305,11 @@ def __init__(self):
def check(self):
conn = http_client.HTTPConnection('fw.telldus.com:80')
try:
conn.request('GET', '/versions.xml')
conn.request('GET', "/versions.xml?mac=%s&hw=%s&product=%s" % (Board.getMacAddr(), self.hw(), Board.product()))
response = conn.getresponse()
except Exception as error:
logging.warning("Could not get version info: %s", error)
return False

parser = xml.parsers.expat.ParserCreate()

parser.StartElementHandler = self._startElement
Expand Down

0 comments on commit 9b976fa

Please sign in to comment.