Skip to content

Commit

Permalink
Maybe this would make migration work?
Browse files Browse the repository at this point in the history
  • Loading branch information
hll committed Nov 3, 2020
1 parent 44f95fe commit e5ae08f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyekonlib/Migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ def sendCommand(deviceAddr, command, postData):
url = "http://%s/config?command=%s" % (deviceAddr, command)
headers = {'User-Agent': 'LuaSocket 2.0.2', 'Content-Type': 'application/json; charset=utf-8', 'Host': "1.1.1.1"}
r = requests.post(url, headers=headers, data=json.dumps(postData, separators=(',', ':')))
r.close()
return r.status_code == requests.codes.ok


Expand Down

0 comments on commit e5ae08f

Please sign in to comment.