Skip to content

Commit

Permalink
Bug in repeater data fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyingDiver committed Mar 29, 2018
1 parent b240c53 commit 131a805
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1376,15 +1376,15 @@ def createAllDevices(self, valuesDict):
else:
ip_address = self.pluginPrefs["ip_address"]
self.logger.info(u"Creating Devices from repeater at %s, Grouping = %s, Create unprogrammed keypad buttons = %s, Create unprogrammed phantom buttons = %s" % \
(self.group_by, self.create_unused_keypad, self.create_unused_phantom))
(ip_address, self.group_by, self.create_unused_keypad, self.create_unused_phantom))
self.logger.info(u"Creating Devices - starting data fetch...")
try:
s = requests.Session()
r = s.get('http://' + ip_address + '/login?login=lutron&password=lutron')
r = s.get('http://' + ip_address + '/DbXmlInfo.xml')
root = ET.fromstring(r.text)
except:
self.logger.error(u"Unable to parse XML file: {}".format(xmlFile))
self.logger.error(u"Unable to parse XML data from repeater.")
self.threadLock.release()
return

Expand Down

0 comments on commit 131a805

Please sign in to comment.