fix: use function parameter in changePassword() #14

Manually merged
sqozz merged 1 commits from cfr34k/sem6000:fix_changePassword into master 4 years ago
cfr34k commented 4 years ago

Fixes the following:

>>> from sem6000 import SEMSocket
>>> socket = SEMSocket('50:51:A9:76:67:1A')
>>> socket.login("0000")
>>> socket.setStatus(True)
Switch toggled
>>> socket.changePassword("1234")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/thomas/code/python/sem6000/sem6000.py", line 66, in changePassword
    payload.append(int(self.newPassword[i]))
AttributeError: 'SEMSocket' object has no attribute 'newPassword'

Fixes the following: ```python >>> from sem6000 import SEMSocket >>> socket = SEMSocket('50:51:A9:76:67:1A') >>> socket.login("0000") >>> socket.setStatus(True) Switch toggled >>> socket.changePassword("1234") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/thomas/code/python/sem6000/sem6000.py", line 66, in changePassword payload.append(int(self.newPassword[i])) AttributeError: 'SEMSocket' object has no attribute 'newPassword' ```
sqozz closed this pull request 4 years ago
sqozz closed this pull request 4 years ago
The pull request has been manually merged as f656c5d516.
You can also view command line instructions.

Step 1:

From your project repository, check out a new branch and test the changes.
git checkout -b cfr34k-fix_changePassword master
git pull fix_changePassword

Step 2:

Merge the changes and update on Gitea.
git checkout master
git merge --no-ff cfr34k-fix_changePassword
git push origin master
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sqozz/sem6000#14
Loading…
There is no content yet.