Commit f76a82a5 authored by Pietro Saccardi's avatar Pietro Saccardi

Bugfix: triggering event only when needed.

If it was triggered and we are turning off motion detection, then raise
parent 3b314fa4
......@@ -95,7 +95,7 @@ class RatcamTelegramPlugin(TelegramProcessBase, MediaReceiver, MotionDetectorRes
if not self._motion_detection_enabled and enabled and self.motion_detector_plugin.triggered:
self._motion_detection_enabled = True
elif self._motion_detection_enabled and not enabled and not self.motion_detector_plugin.triggered:
elif self._motion_detection_enabled and not enabled and self.motion_detector_plugin.triggered:
self._motion_detection_enabled = False
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment