fix: use function parameter in changePassword() #14

Manually merged
sqozz merged 1 commit from cfr34k/sem6000:fix_changePassword into master 2020-05-02 19:22:39 +02:00
Contributor

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 2020-05-02 19:22:38 +02:00
sqozz closed this pull request 2020-05-02 19:22:39 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
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
No description provided.