Skip to content

Commit

Permalink
fix for indoor num outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
pergolafabio committed Sep 12, 2023
1 parent d5c1f47 commit 9cd33b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hikvision-doorbell/src/doorbell.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,11 @@ def isapi_door_capabilities() -> int:
logger.debug("Error parsing: {}", io_doors_xml)
return 0
# Error out if we don't find attribute `max` inside the `doorNo` element
if door_number_element is None :
if door_number_element.text is None:
# Print a string representation of the response XML
logger.debug("No door relays found for the indoor device")
return 0
#logger.debug("We have found {} door relays for the indoor device", door_number_element.text)
logger.debug("We have found {} door relays for the indoor device", door_number_element.text)
return int(door_number_element.text)

# Define the list of available endpoints to try
Expand Down

0 comments on commit 9cd33b9

Please sign in to comment.