diff --git a/hikvision-doorbell/src/mqtt.py b/hikvision-doorbell/src/mqtt.py index 4af6803..12f95b5 100644 --- a/hikvision-doorbell/src/mqtt.py +++ b/hikvision-doorbell/src/mqtt.py @@ -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: