Skip to content

Commit

Permalink
fix for com ports indoor
Browse files Browse the repository at this point in the history
  • Loading branch information
pergolafabio committed Sep 12, 2023
1 parent 9cd33b9 commit 3d3afb3
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 @@ -332,7 +332,7 @@ def isapi_device_info() -> int:
root = ET.fromstring(io_coms_xml)
com_number_element = root.find('{*}alarmOutNum')
# Error out if we don't find attribute `max` inside the `doorNo` element
if com_number_element is None :
if com_number_element.text is None :
# Print a string representation of the response XML
logger.debug("No com ports found for the indoor device")
return 0
Expand Down

0 comments on commit 3d3afb3

Please sign in to comment.