Skip to content

Commit

Permalink
Add type annotations to new onvif_login_check function
Browse files Browse the repository at this point in the history
  • Loading branch information
flacjacket committed Jul 24, 2021
1 parent f92acf8 commit cb965f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/amcrest/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def reboot(self, delay: Optional[int] = None) -> str:
ret = self.command(cmd)
return ret.content.decode()

def onvif_login_check(self, setCheck=False):
def onvif_login_check(self, setCheck: bool = False) -> str:
"""
Allows the other non-admin accounts to use ONVIF.
Currently only the 'admin' account can use ONVIF.
Expand Down

0 comments on commit cb965f8

Please sign in to comment.