Skip to content
This repository has been archived by the owner on Nov 11, 2022. It is now read-only.

Commit

Permalink
Fixed bug introduced when functions were split
Browse files Browse the repository at this point in the history
  • Loading branch information
Ittiz committed Jan 6, 2019
1 parent d572aa6 commit b8928a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Domoticz.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ def findid(self, what, where, state):
f = urllib.request.urlopen(self.url + "/json.htm?type=devices&filter=all&used=true")
response = f.read()
payload = json.loads(response.decode('utf-8'))
idx = False
stype = False
dlevel = False
while i < len(payload['result']):
if whr.search(payload['result'][i]['Name']) and wht.search(payload['result'][i]['Name']):
stype = payload['result'][i]['Type']
Expand Down
2 changes: 1 addition & 1 deletion settings.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"protocol": false, "authorization": false, "httpport": 80, "label1": "null", "label2": "null", "Devices": "", "password": "", "httpsport": 443, "port": "80", "hostname": "127.0.0.1", "__mycroft_skill_firstrun": false, "username": ""}
{"protocol": false, "httpsport": 443, "hostname": "127.0.0.1", "Devices": "", "label1": "null", "__mycroft_skill_firstrun": false, "password": "", "port": "80", "authorization": false, "username": "", "httpport": 80, "label2": "null"}

0 comments on commit b8928a6

Please sign in to comment.