Skip to content

Commit

Permalink
Support siren on event when supportAudioAlarm>0
Browse files Browse the repository at this point in the history
  • Loading branch information
starkillerOG committed May 15, 2024
1 parent 39b1232 commit 280ab11
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions reolink_aio/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1182,9 +1182,8 @@ def construct_capabilities(self, warnings=True) -> None:
if self.api_version("supportAudioPlay", channel) > 0:
self._capabilities[channel].append("play_quick_reply")

if self.api_version("alarmAudio", channel) > 0 and channel in self._audio_alarm_settings:
self._capabilities[channel].append("siren")
if (self.api_version("alarmAudio", channel) > 0 or self.api_version("supportAudioAlarm", channel) > 0) and channel in self._audio_alarm_settings:
self._capabilities[channel].append("siren")
self._capabilities[channel].append("siren_play") # if self.api_version("supportAoAdjust", channel) > 0

if self.audio_record(channel) is not None:
Expand Down

0 comments on commit 280ab11

Please sign in to comment.