Skip to content

Commit

Permalink
remove callsensor check for indoor intercom alarm
Browse files Browse the repository at this point in the history
  • Loading branch information
pergolafabio committed Mar 17, 2023
1 parent da3f12a commit bbcf043
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hikvision-doorbell/src/mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,9 @@ async def video_intercom_alarm(
alarm_info: NET_DVR_VIDEO_INTERCOM_ALARM,
buffer_length,
user_pointer: c_void_p):
call_sensor = cast(Sensor, self._sensors[doorbell]['call'])

if not doorbell._type is DeviceType.INDOOR:
call_sensor = cast(Sensor, self._sensors[doorbell]['call'])

# Extract the type of alarm as a Python enum
try:
Expand Down

0 comments on commit bbcf043

Please sign in to comment.