Skip to content

Commit

Permalink
Merge pull request #224 from NaturalT314/fix/unlock-pin-error
Browse files Browse the repository at this point in the history
Fix: Unlock PIN method returning 101006 Unknown Error
  • Loading branch information
Salamek authored Aug 22, 2024
2 parents 471e8dd + d169733 commit a891722
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions huawei_lte_api/api/Pin.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def simlock(self) -> GetResponseType:
def save_pin(self) -> GetResponseType:
return self._session.get('pin/save-pin')

def operate(self, operate_type: int = 0, current_pin: Optional[int] = None,
new_pin: Optional[int] = None, puk_code: Optional[int] = None) \
def operate(self, operate_type: str = "0", current_pin: Optional[str] = None,
new_pin: Optional[str] = None, puk_code: Optional[str] = None) \
-> SetResponseType:
"""
Parameters
Expand All @@ -39,4 +39,4 @@ def operate(self, operate_type: int = 0, current_pin: Optional[int] = None,
'CurrentPin': current_pin,
'NewPin': new_pin,
'PukCode': puk_code
})
}, is_encrypted=True)

0 comments on commit a891722

Please sign in to comment.