Skip to content

Commit

Permalink
Do not support md_sensitivity if PIR supported
Browse files Browse the repository at this point in the history
  • Loading branch information
starkillerOG committed May 12, 2024
1 parent dd51d5e commit c76fbc8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions reolink_aio/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1246,7 +1246,11 @@ def construct_capabilities(self, warnings=True) -> None:
if self.api_version("supportAITrackLimit", channel) > 0:
self._capabilities[channel].append("auto_track_limit")

if channel in self._md_alarm_settings:
if self.api_version("battery", channel) > 0:
self._capabilities[channel].append("battery")
self._capabilities[channel].append("PIR")

if channel in self._md_alarm_settings and not self.supported(channel, "PIR"):
self._capabilities[channel].append("md_sensitivity")

if self.api_version("supportAiSensitivity", channel) > 0:
Expand All @@ -1255,10 +1259,6 @@ def construct_capabilities(self, warnings=True) -> None:
if self.api_version("supportAiStayTime", channel) > 0:
self._capabilities[channel].append("ai_delay")

if self.api_version("battery", channel) > 0:
self._capabilities[channel].append("battery")
self._capabilities[channel].append("PIR")

if self.api_version("ispHue", channel) > 0:
self._capabilities[channel].append("isp_hue")
if self.api_version("ispSatruation", channel) > 0:
Expand Down

0 comments on commit c76fbc8

Please sign in to comment.