Skip to content

Commit

Permalink
fix for elektro locks
Browse files Browse the repository at this point in the history
  • Loading branch information
pergolafabio committed Sep 12, 2023
1 parent 3d3afb3 commit a0395f9
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 @@ -300,7 +300,7 @@ def isapi_device_info() -> int:
root = ET.fromstring(electro_lock_xml)
electro_lock_xml_element = root.find('{*}electroLockNum')
# Error out if we don't find attribute `max` inside the `doorNo` element
if electro_lock_xml_element is None :
if electro_lock_xml_element.text is None :
# Print a string representation of the response XML
logger.info("No electro locks found for the outdoor device")
raise RuntimeError('Cannot find `electroLockNum` node in XML response')
Expand Down

0 comments on commit a0395f9

Please sign in to comment.