Skip to content

Commit

Permalink
Changed format to lowercase stringified boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
Slyke committed Jul 24, 2021
1 parent 6712945 commit ad42433
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 @@ -156,7 +156,7 @@ def onvif_login_check(self, setCheck=False):
Currently only the 'admin' account can use ONVIF.
"""
cmd = 'configManager.cgi?action=setConfig'
cmd += "&UserGlobal.OnvifLoginCheck={0}".format(str(setCheck))
cmd += "&UserGlobal.OnvifLoginCheck={0}".format(str(setCheck).lower())
ret = self.command(cmd)

return ret.content.decode()

0 comments on commit ad42433

Please sign in to comment.