Skip to content

Commit f2006fa

Browse files
committed
fix SetAutoFocus api call
1 parent 2909639 commit f2006fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reolinkapi/mixins/zoom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def get_auto_focus(self) -> Dict:
3838

3939
def set_auto_focus(self, disable: bool) -> Dict:
4040
"""This command sets the auto focus status."""
41-
data = [{"cmd": "SetAutoFocus", "action": 0, "param": {"channel": 0, "disable": disable}}]
41+
data = [{"cmd": "SetAutoFocus", "action": 0, "param": {"AutoFocus": {"channel": 0, "disable": 1 if disable else 0}}}]
4242
return self._execute_command('SetAutoFocus', data)
4343

4444
def start_zooming_in(self, speed: float = 60) -> Dict:

0 commit comments

Comments
 (0)