Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
Update camera.py
Browse files Browse the repository at this point in the history
removed unneeded assignments
  • Loading branch information
nick2k3 committed Jul 5, 2020
1 parent 166f0da commit 211c927
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions custom_components/reolink_dev/ReolinkPyPi/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,6 @@ async def set_motion_detection(self, enabled):

body = [{"cmd":"SetAlarm","action":0,"param": self._motion_detection_settings["value"] }]
body[0]["param"]["Alarm"]["enable"] = newValue
body[0]["param"]["Alarm"]["channel"] = 0
body[0]["param"]["Alarm"]["type"] = "md"
response = await self.send(body, {"cmd": "SetAlarm", "token": self._token} )
try:
json_data = json.loads(response)
Expand Down

0 comments on commit 211c927

Please sign in to comment.