Skip to content

Commit

Permalink
correct spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
starkillerOG committed May 12, 2024
1 parent c76fbc8 commit a0aa59e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions reolink_aio/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ def pir_enabled(self, channel: int) -> bool | None:

return self._pir[channel]["enable"] > 0

def pir_reduse_alarm(self, channel: int) -> bool | None:
def pir_reduce_alarm(self, channel: int) -> bool | None:
if channel not in self._pir:
return None

Expand Down Expand Up @@ -3807,7 +3807,7 @@ async def set_motion_detection(self, channel: int, enable: bool) -> None:

await self.send_setting(body)

async def set_pir(self, channel: int, enable: bool | None = None, reduse_alarm: bool | None = None, sensitivity: int | None = None) -> None:
async def set_pir(self, channel: int, enable: bool | None = None, reduce_alarm: bool | None = None, sensitivity: int | None = None) -> None:
"""Set PIR settings."""
if channel not in self._channels:
raise InvalidParameterError(f"set_pir: no camera connected to channel '{channel}'")
Expand All @@ -3821,8 +3821,8 @@ async def set_pir(self, channel: int, enable: bool | None = None, reduse_alarm:
pir = {"channel": channel}
if enable is not None:
pir["enable"] = 1 if enable else 0
if reduse_alarm is not None:
pir["reduseAlarm"] = 1 if reduse_alarm else 0
if reduce_alarm is not None:
pir["reduseAlarm"] = 1 if reduce_alarm else 0
if sensitivity is not None:
pir["sensitive"] = sensitivity

Expand Down

0 comments on commit a0aa59e

Please sign in to comment.