Skip to content

Commit

Permalink
chore: log info about unknown detector to get more properties #2
Browse files Browse the repository at this point in the history
  • Loading branch information
petrleocompel committed Feb 20, 2023
1 parent e89fc41 commit 66003f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/hikvision_axpro/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ def from_dict(obj: Any) -> 'Zone':
detector_type = DetectorType(obj.get("detectorType"))
except:
_LOGGER.warning("Invalid detector type %s", obj.get("detectorType"))
_LOGGER.warning("Detector info: %s", obj)
detector_type = None
stay_away = from_bool(obj.get("stayAway"))
zone_type = ZoneType(obj.get("zoneType"))
Expand Down

0 comments on commit 66003f2

Please sign in to comment.