Skip to content

Commit

Permalink
fix for test
Browse files Browse the repository at this point in the history
  • Loading branch information
pergolafabio committed Sep 20, 2023
1 parent 095a953 commit 728804a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hikvision-doorbell/src/doorbell.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def sdk_device_ability() -> int:
def isapi_io_outputs() -> int:
io_outputs_xml = self._call_isapi("GET", "/ISAPI/System/IO/outputs")
root = ET.fromstring(io_outputs_xml)
if 'IOOutputPortList' not in root.tag or len(root) is 0:
if 'IOOutputPortList' not in root.tag or len(root) == 0:
# XML does not contain the required tag
raise RuntimeError(f'Unexpected XML response: {io_outputs_xml}')
return len(root)
Expand Down

0 comments on commit 728804a

Please sign in to comment.